diff options
Diffstat (limited to 'plugins/MirLua/src/mlua_environment.h')
-rw-r--r-- | plugins/MirLua/src/mlua_environment.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/plugins/MirLua/src/mlua_environment.h b/plugins/MirLua/src/mlua_environment.h new file mode 100644 index 0000000000..eb72bf42b8 --- /dev/null +++ b/plugins/MirLua/src/mlua_environment.h @@ -0,0 +1,25 @@ +#ifndef _LUA_ENVIRONMENT_H_ +#define _LUA_ENVIRONMENT_H_ + +class CMLuaEnvironment +{ +private: + int id; + + void CreateEnvironmentTable(); + +public: + lua_State *L; + + CMLuaEnvironment(lua_State *L); + virtual ~CMLuaEnvironment(); + + static CMLuaEnvironment* GetEnvironment(lua_State *L); + static int GetEnvironmentId(lua_State *L); + + int GetId() const; + + bool Load(); +}; + +#endif //_LUA_ENVIRONMENT_H_ |