summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/mlua_script.h
blob: 327bd8a37b9a593e3742b278e6494326cecf0902 (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
34
35
36
37
#ifndef _LUA_SCRIPT_H_
#define _LUA_SCRIPT_H_

class CMLuaScript : public CMLuaEnvironment
{
public:
	enum Status
	{
		None,
		Loaded,
		Failed
	};

private:
	Status status;
	int unloadRef;

	char *moduleName;
	wchar_t *fileName;
	wchar_t filePath[MAX_PATH];

public:
	CMLuaScript(lua_State *L, const wchar_t *path);
	CMLuaScript(const CMLuaScript &script);
	~CMLuaScript();

	const char* GetModuleName() const;

	const wchar_t* GetFilePath() const;
	const wchar_t* GetFileName() const;

	Status GetStatus() const;

	bool Load();
};

#endif //_LUA_SCRIPT_H_