15 #include "../script/script_config.hpp" 16 #include "../company_type.h" 33 class AIInfo *GetInfo()
const;
Get the Script config from the current game mode.
bool ResetInfo(bool force_exact_match)
When ever the AI Scanner is reloaded, all infos become invalid.
void ClearConfigList()
Routine that clears the config list.
int GetSetting(const char *name) const
Get the value of a setting for this config.
void SetSetting(const char *name, int value)
Set the value of a setting for this config.
All static information from an Script like name, version, etc.
ScriptSettingSource
Where to get the config from, either default (depends on current game mode) or force either newgame o...
static AIConfig * GetConfig(CompanyID company, ScriptSettingSource source=SSS_DEFAULT)
Get the config of a company.
ScriptInfo * FindInfo(const char *name, int version, bool force_exact_match)
This function should call back to the Scanner in charge of this Config, to find the ScriptInfo belong...
All static information from an AI like name, version, etc.
int version
Version of the Script.
void PushExtraConfigList()
In case you have mandatory non-Script-definable config entries in your list, add them to this functio...
const char * name
Name of the Script.
Owner
Enum for all companies/owners.