diff options
author | aunsane <aunsane@gmail.com> | 2018-07-13 23:57:25 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2018-07-15 15:03:47 +0300 |
commit | ce719a1725988bded5566a5d7f596b1ba42cfa91 (patch) | |
tree | ee5a96fa51444ed509edb111a0ed49eabda834f2 /plugins/MirLua/src/plugin.h | |
parent | 40198c29b0f5e7f14f73a3e0a62541ac918612a8 (diff) |
MirLua: add Evaluate option page to test scripts
Diffstat (limited to 'plugins/MirLua/src/plugin.h')
-rw-r--r-- | plugins/MirLua/src/plugin.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/plugins/MirLua/src/plugin.h b/plugins/MirLua/src/plugin.h index ac8b89142e..dc07965144 100644 --- a/plugins/MirLua/src/plugin.h +++ b/plugins/MirLua/src/plugin.h @@ -2,25 +2,30 @@ struct CMPlugin : public PLUGIN<CMPlugin> { - friend class CMLuaOptions; + friend class CMLuaOptionsMain; + friend class CMLuaEvaluateOptions; private: - CMLua *lua; + lua_State *L; void LoadLua(); void UnloadLua(); + OBJLIST<CMLuaScript> m_scripts; + void LoadLuaScripts(); + void UnloadLuaScripts(); + void ReloadLuaScripts(); + + int __cdecl OnOptionsInit(WPARAM wParam, LPARAM); + int __cdecl OnModulesLoaded(WPARAM, LPARAM); + INT_PTR __cdecl Eval(WPARAM, LPARAM); INT_PTR __cdecl Call(WPARAM, LPARAM); INT_PTR __cdecl Exec(WPARAM, LPARAM); public: - OBJLIST<CMLuaScript> Scripts; - CMPlugin(); - void Reload(); - int Load() override; int Unload() override; }; |