(svn r23616) -Add: ScriptGameSettings::SetValue, to set gamesettings (GameScript only)

This commit is contained in:
truebrain
2011-12-19 20:57:43 +00:00
parent 9359c6fc47
commit e53b2f2ab0
3 changed files with 28 additions and 2 deletions

View File

@@ -61,6 +61,17 @@ public:
*/
static int32 GetValue(const char *setting);
/**
* Sets the value of the game setting.
* @param setting The setting to set the value of.
* @param value The value to set the setting to.
* @pre IsValid(setting).
* @return True if the action succeeded.
* @note Results achieved in the past offer no gurantee for the future.
* @api -ai
*/
static bool SetValue(const char *setting, int value);
/**
* Checks whether the given vehicle-type is disabled for AIs.
* @param vehicle_type The vehicle-type to check.