- allow loading of scenarios and tutorials when there are none (show an error message)

This commit is contained in:
Mark Vejvoda
2012-06-30 19:11:54 +00:00
parent 04442af2e9
commit 76606fbdbe
10 changed files with 160 additions and 32 deletions

View File

@@ -39,6 +39,8 @@ private:
int argumentCount;
string currentLuaFunction;
bool currentLuaFunctionIsValid;
string sandboxWrapperFunctionName;
string sandboxCode;
void DumpGlobals();
@@ -46,12 +48,16 @@ public:
LuaScript();
~LuaScript();
void loadCode(const string &code, const string &name);
void loadCode(string code, string name);
void beginCall(const string& functionName);
void beginCall(string functionName);
void endCall();
void registerFunction(LuaFunction luaFunction, const string &functionName);
int runCode(const string code);
void setSandboxWrapperFunctionName(string name);
void setSandboxCode(string code);
void registerFunction(LuaFunction luaFunction, string functionName);
void saveGame(XmlNode *rootNode);
void loadGame(const XmlNode *rootNode);