diff options
Diffstat (limited to 'plugins/MirLua/src/mlua_script.h')
-rw-r--r-- | plugins/MirLua/src/mlua_script.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/plugins/MirLua/src/mlua_script.h b/plugins/MirLua/src/mlua_script.h new file mode 100644 index 0000000000..0b299112b7 --- /dev/null +++ b/plugins/MirLua/src/mlua_script.h @@ -0,0 +1,30 @@ +#ifndef _LUA_SCRIPT_H_
+#define _LUA_SCRIPT_H_
+
+class CMLuaScript
+{
+private:
+ lua_State *L;
+
+ char* moduleName;
+ TCHAR* fileName;
+ TCHAR filePath[MAX_PATH];
+ bool isLoaded;
+ int group;
+ int unloadRef;
+
+public:
+ CMLuaScript(lua_State *L, const TCHAR* path, int iGroup = 0);
+ ~CMLuaScript();
+
+ const char* GetModuleName() const;
+
+ const TCHAR* GetFilePath() const;
+ const TCHAR* GetFileName() const;
+ const int GetGroup() const;
+
+ bool Load();
+ void Unload();
+};
+
+#endif //_LUA_SCRIPT_H_
|