Additional changes to a4844ca

This commit is contained in:
Birunthan Mohanathas
2012-10-06 22:03:29 +03:00
parent a4844ca924
commit 1b235dbae8
6 changed files with 27 additions and 30 deletions

View File

@ -27,11 +27,12 @@ public:
LuaScript();
~LuaScript();
bool Initialize(const WCHAR* scriptFile);
bool Initialize(const std::wstring& scriptFile);
void Uninitialize();
bool IsInitialized() { return m_Ref != LUA_NOREF; }
int GetRef() { return m_Ref; }
const std::wstring& GetFile() { return m_File; }
bool IsFunction(const char* funcName);
void RunFunction(const char* funcName);
@ -40,6 +41,8 @@ public:
protected:
int m_Ref;
std::wstring m_File;
};
#endif