diff options
author | aunsane <aunsane@gmail.com> | 2018-03-22 01:53:49 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2018-03-22 01:54:09 +0300 |
commit | 2a498d86625f65f6ab308fa20c421099c785bf94 (patch) | |
tree | 9c0d59f41411e46288f88ccdbde4a0d23f440720 /plugins/MirLua/src/mlua_function_loader.h | |
parent | 46cded99bbfb90bea8e998e9183c20cc3e4f7365 (diff) |
MirLua: various fixes
- CMLua now inherit PLUGIN
- additional lua fuctions initialization moved to separated loader
- ability to realod script without object recreation
- scropt object should control own enable state
- fix m_json whit is not workes almost at all
- version bump
Diffstat (limited to 'plugins/MirLua/src/mlua_function_loader.h')
-rw-r--r-- | plugins/MirLua/src/mlua_function_loader.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/MirLua/src/mlua_function_loader.h b/plugins/MirLua/src/mlua_function_loader.h new file mode 100644 index 0000000000..9724ccdc3d --- /dev/null +++ b/plugins/MirLua/src/mlua_function_loader.h @@ -0,0 +1,14 @@ +#pragma once + +class CMLuaFunctionLoader +{ +private: + lua_State *L; + + CMLuaFunctionLoader(lua_State *L); + + void LoadFunctions(); + +public: + static void Load(lua_State *L); +}; |