2021-02-17 22:56:14 +01:00
|
|
|
#ifndef MWLUA_CONTEXT_H
|
|
|
|
#define MWLUA_CONTEXT_H
|
|
|
|
|
|
|
|
namespace LuaUtil
|
|
|
|
{
|
|
|
|
class LuaState;
|
|
|
|
class UserdataSerializer;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace MWLua
|
|
|
|
{
|
2023-03-19 21:32:16 +01:00
|
|
|
class LuaEvents;
|
2021-02-17 22:56:14 +01:00
|
|
|
class LuaManager;
|
2023-08-06 16:21:43 +02:00
|
|
|
class ObjectLists;
|
2021-02-17 22:56:14 +01:00
|
|
|
|
|
|
|
struct Context
|
|
|
|
{
|
2024-01-07 23:29:20 +01:00
|
|
|
bool mIsMenu;
|
2021-02-17 22:56:14 +01:00
|
|
|
bool mIsGlobal;
|
|
|
|
LuaManager* mLuaManager;
|
|
|
|
LuaUtil::LuaState* mLua;
|
|
|
|
LuaUtil::UserdataSerializer* mSerializer;
|
2023-08-06 16:21:43 +02:00
|
|
|
ObjectLists* mObjectLists;
|
2023-03-19 21:32:16 +01:00
|
|
|
LuaEvents* mLuaEvents;
|
2021-02-17 22:56:14 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // MWLUA_CONTEXT_H
|