mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-10 20:46:47 +03:00
Added Debug Console Window
Added Script function that handles standalone script commands
This commit is contained in:
parent
8ca2bf97a4
commit
ca12b10ec3
3 changed files with 79 additions and 12 deletions
|
@ -136,12 +136,13 @@ private:
|
|||
map<string, short> m_itemsMapName;
|
||||
vector<LuaFunction*> m_triggers;
|
||||
|
||||
string loadScriptFromFile(char* luaFilename);
|
||||
string loadScriptFromFile(const char* luaFilename);
|
||||
|
||||
public:
|
||||
GameScript(sol::state* lua);
|
||||
|
||||
bool ExecuteScript(char* luaFilename, string* message);
|
||||
bool ExecuteScript(const char* luaFilename, string* message);
|
||||
bool ExecuteString(const char* command, string* message);
|
||||
void FreeLevelScripts();
|
||||
void AddTrigger(LuaFunction* function);
|
||||
void AddLuaId(int luaId, short itemNumber);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue