diff options
Diffstat (limited to 'plugins/MirLua/src/mlua_module_loader.h')
-rw-r--r-- | plugins/MirLua/src/mlua_module_loader.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/plugins/MirLua/src/mlua_module_loader.h b/plugins/MirLua/src/mlua_module_loader.h new file mode 100644 index 0000000000..b90e18c892 --- /dev/null +++ b/plugins/MirLua/src/mlua_module_loader.h @@ -0,0 +1,18 @@ +#ifndef _LUA_MODULE_LOADER_H_
+#define _LUA_MODULE_LOADER_H_
+
+class CLuaModuleLoader
+{
+private:
+ lua_State *L;
+
+ CLuaModuleLoader(lua_State *L);
+
+ void PreloadModule(const char *name, lua_CFunction loader);
+ void LoadModules();
+
+public:
+ static void Load(lua_State *L);
+};
+
+#endif //_LUA_MODULE_LOADER_H_
\ No newline at end of file |