summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/mlua.h
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2018-03-22 01:53:49 +0300
committeraunsane <aunsane@gmail.com>2018-03-22 01:54:09 +0300
commit2a498d86625f65f6ab308fa20c421099c785bf94 (patch)
tree9c0d59f41411e46288f88ccdbde4a0d23f440720 /plugins/MirLua/src/mlua.h
parent46cded99bbfb90bea8e998e9183c20cc3e4f7365 (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.h')
-rw-r--r--plugins/MirLua/src/mlua.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/plugins/MirLua/src/mlua.h b/plugins/MirLua/src/mlua.h
index 44ebd4a40d..6f5bdca432 100644
--- a/plugins/MirLua/src/mlua.h
+++ b/plugins/MirLua/src/mlua.h
@@ -1,12 +1,18 @@
#ifndef _LUA_CORE_H_
#define _LUA_CORE_H_
-class CMLua
+class CMLua : private PLUGIN<CMLua>
{
+ friend class CMLuaOptions;
+
private:
lua_State *L;
- void SetPaths();
+ void Unload();
+
+ INT_PTR __cdecl Eval(WPARAM, LPARAM);
+ INT_PTR __cdecl Call(WPARAM, LPARAM);
+ INT_PTR __cdecl Exec(WPARAM, LPARAM);
public:
OBJLIST<CMLuaScript> Scripts;
@@ -15,11 +21,7 @@ public:
~CMLua();
void Load();
- void Unload();
-
- INT_PTR Call(WPARAM, LPARAM);
- INT_PTR Exec(WPARAM, LPARAM);
- INT_PTR Eval(WPARAM, LPARAM);
+ void Reload();
};
#endif //_LUA_CORE_H_