(svn r23616) -Add: ScriptGameSettings::SetValue, to set gamesettings (GameScript only)
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user