(svn r23367) -Codechange: refactor GetSetting to ScriptInstance, to avoid global variable in script_controller

This commit is contained in:
truebrain
2011-11-29 23:27:01 +00:00
parent 3e6d026129
commit 880f377fa6
5 changed files with 17 additions and 4 deletions

View File

@@ -36,6 +36,13 @@ public:
*/
void Initialize(const char *main_script, const char *instance_name);
/**
* Get the value of a setting of the current instance.
* @param name The name of the setting.
* @return the value for the setting, or -1 if the setting is not known.
*/
virtual int GetSetting(const char *name) = 0;
/**
* A script in multiplayer waits for the server to handle his DoCommand.
* It keeps waiting for this until this function is called.