summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/mlua_environment.h
blob: eb72bf42b83a6c23826c2bfd9a6005f7ebab5984 (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_ENVIRONMENT_H_
#define _LUA_ENVIRONMENT_H_

class CMLuaEnvironment
{
private:
	int id;

	void CreateEnvironmentTable();

public:
	lua_State *L;

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

	static CMLuaEnvironment* GetEnvironment(lua_State *L);
	static int GetEnvironmentId(lua_State *L);

	int GetId() const;

	bool Load();
};

#endif //_LUA_ENVIRONMENT_H_