diff options
Diffstat (limited to 'plugins/MirLua/src/mlua_script.h')
-rw-r--r-- | plugins/MirLua/src/mlua_script.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/plugins/MirLua/src/mlua_script.h b/plugins/MirLua/src/mlua_script.h index 76731395fb..742fc9ac75 100644 --- a/plugins/MirLua/src/mlua_script.h +++ b/plugins/MirLua/src/mlua_script.h @@ -4,6 +4,8 @@ class CMLuaScript
{
public:
+ lua_State *L;
+
enum Status
{
None,
@@ -12,18 +14,21 @@ public: };
private:
- lua_State *L;
-
+ int id;
char *moduleName;
TCHAR *fileName;
TCHAR filePath[MAX_PATH];
Status status;
- int unloadRef;
public:
CMLuaScript(lua_State *L, const TCHAR *path);
~CMLuaScript();
+ //const int GetId() const;
+
+ static CMLuaScript* GetScriptFromEnviroment(lua_State *L, int n = 1);
+ static int GetScriptIdFromEnviroment(lua_State *L, int n = 1);
+
const char* GetModuleName() const;
const TCHAR* GetFilePath() const;
|