diff options
Diffstat (limited to 'plugins/MirLua/src/mlua.h')
-rw-r--r-- | plugins/MirLua/src/mlua.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/plugins/MirLua/src/mlua.h b/plugins/MirLua/src/mlua.h new file mode 100644 index 0000000000..d3f9cc3acd --- /dev/null +++ b/plugins/MirLua/src/mlua.h @@ -0,0 +1,27 @@ +#ifndef _LUA_CORE_H_
+#define _LUA_CORE_H_
+
+class CMLua : public PLUGIN<CMLua>
+{
+ 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;
+
+ CMLua();
+ ~CMLua();
+
+ void Load();
+ void Reload();
+};
+
+#endif //_LUA_CORE_H_
|