summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/mplugin.h
blob: 9db92580f8d01e9aa1754e4315772a325f101896 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef _LUA_CORE_H_
#define _LUA_CORE_H_

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();
};

#endif //_LUA_CORE_H_