OpenTTD Source
20240919-master-gdf0233f4c2
|
Go to the source code of this file.
|
void | SaveViewportBeforeSaveGame () |
|
void | ResetViewportAfterLoadGame () |
|
const ChunkHandlerTable | _misc_chunk_handlers (misc_chunk_handlers) |
|
Saving and loading of things that didn't fit anywhere else
Definition in file misc_sl.cpp.
◆ _date_check_desc
◆ _date_desc
◆ _view_desc
Initial value:= {
SLEG_VAR(
"zoom", _saved_scrollpos_zoom, SLE_UINT8),
}
Definition at line 152 of file misc_sl.cpp.
◆ misc_chunk_handlers
static TickCounter counter
Monotonic counter, in ticks, since start of game.
@ SLV_U64_TICK_COUNTER
300 PR#10035 Make tick counter 64bit to avoid wrapping.
#define SLEG_CONDSSTR(name, variable, type, from, to)
Storage of a global std::string in some savegame versions.
static DateFract date_fract
Fractional part of the day.
@ SL_MIN_VERSION
First savegame version.
LoadCheckData _load_check_data
Data loaded from save during SL_LOAD_CHECK.
@ SLV_ECONOMY_DATE
326 PR#10700 Split calendar and economy timers and dates.
TimeoutTimer< TimerGameTick > _new_competitor_timeout
Start a new competitor company if possible.
Randomizer _random
Random used in the game state calculations.
static DateFract date_fract
Fractional part of the day.
static uint16_t sub_date_fract
Subpart of date_fract that we use when calendar days are slower than economy days.
@ SLV_CALENDAR_SUB_DATE_FRACT
328 PR#11428 Add sub_date_fract to measure calendar days.
std::string savegame_id
Unique ID of the savegame.
#define SLEG_VAR(name, variable, type)
Storage of a global variable in every savegame version.
PauseMode _pause_mode
The current pause mode.
@ SL_MAX_VERSION
Highest possible saveload version.
uint16_t _disaster_delay
Delay counter for considering the next disaster.
@ SLV_4
4.0 1 4.1 122 0.3.3, 0.3.4 4.2 1222 0.3.5 4.3 1417 4.4 1426
GameSessionStats _game_session_stats
Statistics about the current session.
uint _cur_company_tick_index
used to generate a name for one company that doesn't have a name yet per tick
#define SLEG_CONDVAR(name, variable, type, from, to)
Storage of a global variable in some savegame versions.
@ SLV_AI_START_DATE
309 PR#10653 Removal of individual AI start dates and added a generic one.
uint32_t state[2]
The state of the randomizer.
uint8_t _trees_tick_ctr
Determines when to consider building more trees.
static Date date
Current date in days (day counter).
@ SLV_SAVEGAME_ID
313 PR#10719 Add an unique ID to every savegame (used to deduplicate surveys).
uint8_t _age_cargo_skip_counter
Skip aging of cargo? Used before savegame version 162.
static Date date
Current date in days (day counter).