OpenTTD Source 20241224-master-gf74b0cf984
AfterNewGRFScan Struct Reference

Callback structure of statements to be executed after the NewGRF scan. More...

Inheritance diagram for AfterNewGRFScan:
NewGRFScanCallback

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.
 

Detailed Description

Callback structure of statements to be executed after the NewGRF scan.

Definition at line 379 of file openttd.cpp.

Constructor & Destructor Documentation

◆ AfterNewGRFScan()

AfterNewGRFScan::AfterNewGRFScan ( )
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.

Member Function Documentation

◆ OnNewGRFsScanned()

Field Documentation

◆ connection_string

std::string AfterNewGRFScan::connection_string

Information about the server to connect to.

Definition at line 384 of file openttd.cpp.

Referenced by OnNewGRFsScanned().

◆ dedicated_host

std::string AfterNewGRFScan::dedicated_host

Hostname for the dedicated server.

Definition at line 382 of file openttd.cpp.

Referenced by OnNewGRFsScanned().

◆ dedicated_port

uint16_t AfterNewGRFScan::dedicated_port = 0

Port for the dedicated server.

Definition at line 383 of file openttd.cpp.

Referenced by OnNewGRFsScanned().

◆ generation_seed

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().

◆ join_server_password

std::string AfterNewGRFScan::join_server_password

The password to join the server with.

Definition at line 385 of file openttd.cpp.

Referenced by OnNewGRFsScanned().

◆ save_config

bool AfterNewGRFScan::save_config = true

The save config setting.

Definition at line 386 of file openttd.cpp.

Referenced by OnNewGRFsScanned().

◆ startyear

The start year.

Definition at line 380 of file openttd.cpp.

Referenced by OnNewGRFsScanned().


The documentation for this struct was generated from the following file: