|
OpenTTD Source
1.10.0-RC1
|
Callback structure of statements to be executed after the NewGRF scan. More...
Public Member Functions | |
| AfterNewGRFScan (bool *save_config_ptr) | |
| Create a new callback. More... | |
| virtual void | OnNewGRFsScanned () |
| Called whenever the NewGRF scan completed. More... | |
Public Member Functions inherited from NewGRFScanCallback | |
| virtual | ~NewGRFScanCallback () |
| Make sure the right destructor gets called. More... | |
Data Fields | |
| Year | startyear |
| The start year. | |
| uint32 | generation_seed |
| Seed for the new game. | |
| char * | dedicated_host |
| Hostname for the dedicated server. | |
| uint16 | dedicated_port |
| Port for the dedicated server. | |
| char * | network_conn |
| Information about the server to connect to, or nullptr. | |
| const char * | join_server_password |
| The password to join the server with. | |
| const char * | join_company_password |
| The password to join the company with. | |
| bool * | save_config_ptr |
| The pointer to the save config setting. | |
| bool | save_config |
| The save config setting. | |
Callback structure of statements to be executed after the NewGRF scan.
Definition at line 389 of file openttd.cpp.
|
inline |
Create a new callback.
| save_config_ptr | Pointer to the save_config local variable which decides whether to save of exit or not. |
Definition at line 405 of file openttd.cpp.
Referenced by openttd_main().
|
inlinevirtual |
Called whenever the NewGRF scan completed.
Implements NewGRFScanCallback.
Definition at line 416 of file openttd.cpp.
References _network_bind_list, _settings_client, _settings_newgame, dedicated_port, TarScanner::DoScan(), GameSettings::game_creation, GENERATE_NEW_SEED, GameCreationSettings::generation_seed, generation_seed, MusicDriver::GetInstance(), ClientSettings::gui, Game::Initialize(), AI::Initialize(), INVALID_YEAR, GUISettings::last_newgrf_count, WindowDesc::LoadFromConfig(), LoadFromConfig(), LoadFromHighScore(), LoadHotkeysFromConfig(), ClientSettings::music, MusicSettings::music_vol, ClientSettings::network, ResetGRFConfig(), save_config, TarScanner::SCENARIO, NetworkSettings::server_port, MusicDriver::SetVolume(), GameCreationSettings::starting_year, startyear, Game::Uninitialize(), AI::Uninitialize(), and UpdateNewGRFConfigPalette().