summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/mlua_script.h
blob: 38e207549d64c23ba9303070ffb74280d62b9bfa (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
#ifndef _LUA_SCRIPT_H_
#define _LUA_SCRIPT_H_

class CMLuaScript
{
private:
	lua_State *L;

	char* moduleName;
	TCHAR* fileName;
	TCHAR filePath[MAX_PATH];
	bool isLoaded;
	int unloadRef;

public:
	CMLuaScript(lua_State *L, const TCHAR* path);
	~CMLuaScript();

	const char* GetModuleName() const;

	const TCHAR* GetFilePath() const;
	const TCHAR* GetFileName() const;
	const int GetGroup() const;

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

#endif //_LUA_SCRIPT_H_