OpenTTD Source 20241224-master-gf74b0cf984
|
Callback structure of statements to be executed after the NewGRF scan. More...
Public Member Functions | |
AfterNewGRFScan () | |
Create a new callback. | |
void | OnNewGRFsScanned () override |
Called whenever the NewGRF scan completed. | |
Public Member Functions inherited from NewGRFScanCallback | |
virtual | ~NewGRFScanCallback ()=default |
Make sure the right destructor gets called. | |
Data Fields | |
TimerGameCalendar::Year | startyear = CalendarTime::INVALID_YEAR |
The start year. | |
uint32_t | generation_seed = GENERATE_NEW_SEED |
Seed for the new game. | |
std::string | dedicated_host |
Hostname for the dedicated server. | |
uint16_t | dedicated_port = 0 |
Port for the dedicated server. | |
std::string | connection_string |
Information about the server to connect to. | |
std::string | join_server_password |
The password to join the server with. | |
bool | save_config = true |
The save config setting. | |
Callback structure of statements to be executed after the NewGRF scan.
Definition at line 379 of file openttd.cpp.
|
inline |
Create a new callback.
Definition at line 391 of file openttd.cpp.
References _settings_game, GameSettings::game_creation, generation_seed, and GameCreationSettings::generation_seed.
|
inlineoverridevirtual |
Called whenever the NewGRF scan completed.
Implements NewGRFScanCallback.
Definition at line 398 of file openttd.cpp.
References _network_available, _network_bind_list, _settings_client, _settings_newgame, _switch_mode, COMPANY_NEW_COMPANY, connection_string, dedicated_host, dedicated_port, TarScanner::DoScan(), MusicSettings::effect_vol, GameSettings::game_creation, generation_seed, GameCreationSettings::generation_seed, MusicDriver::GetInstance(), ClientSettings::gui, IConsoleCmdExec(), AI::Initialize(), Game::Initialize(), TimerGameConst< struct Calendar >::INVALID_YEAR, join_server_password, GUISettings::last_newgrf_count, WindowDesc::LoadFromConfig(), LoadFromConfig(), LoadFromHighScore(), LoadHotkeysFromConfig(), LoadIntroGame(), ClientSettings::music, MusicSettings::music_vol, ClientSettings::network, NetworkClientConnectGame(), ResetGRFConfig(), save_config, TarScanner::SCENARIO, NetworkSettings::server_port, MusicDriver::SetVolume(), startyear, AI::Uninitialize(), Game::Uninitialize(), and UpdateNewGRFConfigPalette().
std::string AfterNewGRFScan::connection_string |
Information about the server to connect to.
Definition at line 384 of file openttd.cpp.
Referenced by OnNewGRFsScanned().
std::string AfterNewGRFScan::dedicated_host |
Hostname for the dedicated server.
Definition at line 382 of file openttd.cpp.
Referenced by OnNewGRFsScanned().
uint16_t AfterNewGRFScan::dedicated_port = 0 |
Port for the dedicated server.
Definition at line 383 of file openttd.cpp.
Referenced by OnNewGRFsScanned().
uint32_t AfterNewGRFScan::generation_seed = GENERATE_NEW_SEED |
Seed for the new game.
Definition at line 381 of file openttd.cpp.
Referenced by AfterNewGRFScan(), and OnNewGRFsScanned().
std::string AfterNewGRFScan::join_server_password |
The password to join the server with.
Definition at line 385 of file openttd.cpp.
Referenced by OnNewGRFsScanned().
bool AfterNewGRFScan::save_config = true |
The save config setting.
Definition at line 386 of file openttd.cpp.
Referenced by OnNewGRFsScanned().
TimerGameCalendar::Year AfterNewGRFScan::startyear = CalendarTime::INVALID_YEAR |