blob: 2caf88c925dc1882d3c3a33b7e71fa40a4f965f4 (
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
38
|
#pragma once
class CMLuaScript : public CMLuaEnvironment
{
public:
enum Status
{
None,
Loaded,
Failed
};
private:
Status status;
int unloadRef;
const wchar_t *fileName;
wchar_t filePath[MAX_PATH];
public:
CMLuaScript(lua_State *L, const wchar_t *path);
CMLuaScript(const CMLuaScript &script);
~CMLuaScript();
const wchar_t* GetFilePath() const;
const wchar_t* GetFileName() const;
bool IsEnabled();
void Enable();
void Disable();
Status GetStatus() const;
int Load() override;
int Unload() override;
bool Reload();
};
|