Static Public Member Functions
|static bool||IsValid (const char *setting)|
|Is the given game setting a valid setting for this instance of OpenTTD? |
|static int32||GetValue (const char *setting)|
|Gets the value of the game setting. |
|static bool||IsDisabledVehicleType (AIVehicle::VehicleType vehicle_type)|
|Checks whether the given vehicle-type is disabled for companies. |
The names of the setting for AIGameSettings::IsValid and AIGameSettings::GetValue are the same ones as those that are shown by the list_settings command in the in-game console. Settings that are string based are NOT supported and GameSettings::IsValid will return false for them. These settings will not be supported either because they have no relevance for the script (default client names, server IPs, etc.).
|static bool AIGameSettings::IsValid||(||const char *||setting||)||
Is the given game setting a valid setting for this instance of OpenTTD?
|setting||The setting to check for existence.|
|static int32 AIGameSettings::GetValue||(||const char *||setting||)||
Gets the value of the game setting.
|setting||The setting to get the value of.|
|static bool AIGameSettings::IsDisabledVehicleType||(||AIVehicle::VehicleType||vehicle_type||)||
Checks whether the given vehicle-type is disabled for companies.
|vehicle_type||The vehicle-type to check.|