mirror of
https://github.com/glest/glest-source.git
synced 2025-09-25 23:19:07 +02:00
- allow loading of scenarios and tutorials when there are none (show an error message)
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user