chore(Misc): make AzerothCore new api support

This commit is contained in:
Winfidonarleyan
2021-05-06 01:51:07 +07:00
parent 2962d4fea3
commit dc300fe5cd
5 changed files with 39 additions and 60 deletions

View File

@@ -114,13 +114,18 @@ struct LuaScript
std::string modulepath;
};
#define ELUNA_STATE_PTR "Eluna State Ptr"
#define ELUNA_STATE_PTR "Eluna State Ptr"
#define LOCK_ELUNA Eluna::Guard __guard(Eluna::GetLock())
#ifndef TRINITY
#define TC_GAME_API
#if defined(TRINITY)
#define ELUNA_GAME_API TC_GAME_API
#elif defined(AZEROTHCORE)
#define ELUNA_GAME_API AC_GAME_API
#else
#define ELUNA_GAME_API
#endif
class TC_GAME_API Eluna
class ELUNA_GAME_API Eluna
{
public:
typedef std::list<LuaScript> ScriptList;