summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/mlua_enviroment.h
blob: 73f3f9c377ed3eaf20b244449e2bbac86fdfe7e2 (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
#ifndef _LUA_ENVIROMENT_H_
#define _LUA_ENVIROMENT_H_

class CMLuaEnviroment
{
private:
	int id;

	void CreateEnviromentTable();

public:
	lua_State *L;

	CMLuaEnviroment(lua_State *L);
	virtual ~CMLuaEnviroment();

	static CMLuaEnviroment* GetEnviroment(lua_State *L);
	static int GetEnviromentId(lua_State *L);

	int GetId() const;

	bool Load();
};

#endif //_LUA_ENVIROMENT_H_