summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/mlua_enviroment.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirLua/src/mlua_enviroment.h')
-rw-r--r--plugins/MirLua/src/mlua_enviroment.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/plugins/MirLua/src/mlua_enviroment.h b/plugins/MirLua/src/mlua_enviroment.h
new file mode 100644
index 0000000000..4366d58d03
--- /dev/null
+++ b/plugins/MirLua/src/mlua_enviroment.h
@@ -0,0 +1,26 @@
+#ifndef _LUA_ENVIROMENT_H_
+#define _LUA_ENVIROMENT_H_
+
+class CMLuaEnviroment
+{
+private:
+ int id;
+
+ void CreateEnviromentTable();
+
+public:
+ lua_State *L;
+
+ CMLuaEnviroment(lua_State *L);
+ virtual ~CMLuaEnviroment() { }
+
+ static CMLuaEnviroment* GetEnviroment(lua_State *L);
+ static int GetEnviromentId(lua_State *L);
+
+ int GetId() const;
+
+ bool Load(int ind);
+ void Unload();
+};
+
+#endif //_LUA_ENVIROMENT_H_