summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/mlua.h
blob: d3f9cc3acd3fea73badf19a4aa7368329a134c20 (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_

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_