summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/mplugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirLua/src/mplugin.h')
-rw-r--r--plugins/MirLua/src/mplugin.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/plugins/MirLua/src/mplugin.h b/plugins/MirLua/src/mplugin.h
new file mode 100644
index 0000000000..0a5bf21445
--- /dev/null
+++ b/plugins/MirLua/src/mplugin.h
@@ -0,0 +1,24 @@
+#pragma once
+
+struct CMPlugin : public PLUGIN<CMPlugin>
+{
+ friend class CMLuaOptions;
+
+private:
+ lua_State *L;
+
+ void Unload();
+
+ INT_PTR __cdecl Eval(WPARAM, LPARAM);
+ INT_PTR __cdecl Call(WPARAM, LPARAM);
+ INT_PTR __cdecl Exec(WPARAM, LPARAM);
+
+public:
+ OBJLIST<CMLuaScript> Scripts;
+
+ CMPlugin();
+ ~CMPlugin();
+
+ void Load();
+ void Reload();
+};