summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/mlua.h
blob: 3c5e3dd7699a89669a055af7cffab3185e67a3bf (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
28
29
30
31
32
33
#ifndef _LUA_CORE_H_
#define _LUA_CORE_H_

struct HandleRefParam
{
	HANDLE h;
	int ref;
	lua_State *L;
};

class CMLua
{
private:
	lua_State *L;

	void SetPaths();

public:
	LIST<CMLuaScript> Scripts;

	CMLua();
	~CMLua();

	operator lua_State*() const
	{
		return L;
	}

	void Load();
	void Unload();
};

#endif //_LUA_CORE_H_