summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/mlua_script_loader.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirLua/src/mlua_script_loader.h')
-rw-r--r--plugins/MirLua/src/mlua_script_loader.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/plugins/MirLua/src/mlua_script_loader.h b/plugins/MirLua/src/mlua_script_loader.h
new file mode 100644
index 0000000000..0d62e86ffc
--- /dev/null
+++ b/plugins/MirLua/src/mlua_script_loader.h
@@ -0,0 +1,20 @@
+#ifndef _LUA_SCRIPT_LOADER_H_
+#define _LUA_SCRIPT_LOADER_H_
+
+class CLuaScriptLoader
+{
+private:
+ lua_State *L;
+
+ CLuaScriptLoader(lua_State *L);
+
+ void RegisterScriptsFolder(const char *path);
+
+ void LoadScript(const char *path);
+ void LoadScripts(const TCHAR *scriptDir);
+
+public:
+ static void Load(lua_State *L);
+};
+
+#endif //_LUA_SCRIPT_LOADER_H_ \ No newline at end of file