|
OpenTTD Source 20260311-master-g511d3794ce
|
Saving and loading of things that didn't fit anywhere else. More...
#include "../stdafx.h"#include "saveload.h"#include "compat/misc_sl_compat.h"#include "../timer/timer_game_calendar.h"#include "../timer/timer_game_economy.h"#include "../zoom_func.h"#include "../window_gui.h"#include "../window_func.h"#include "../viewport_func.h"#include "../gfx_func.h"#include "../core/random_func.hpp"#include "../fios.h"#include "../timer/timer.h"#include "../timer/timer_game_tick.h"#include "../safeguards.h"Go to the source code of this file.
Data Structures | |
| struct | DATEChunkHandler |
| Save load date related variables as well as persistent tick counters. More... | |
| struct | VIEWChunkHandler |
Functions | |
| void | SaveViewportBeforeSaveGame () |
| void | ResetViewportAfterLoadGame () |
| const ChunkHandlerTable | _misc_chunk_handlers (misc_chunk_handlers) |
Variables | |
| TileIndex | _cur_tileloop_tile |
| uint16_t | _disaster_delay |
| Delay counter for considering the next disaster. | |
| uint8_t | _trees_tick_ctr |
| Determines when to consider building more trees. | |
| uint8_t | _age_cargo_skip_counter |
| Skip aging of cargo? Used before savegame version 162. | |
| TimeoutTimer< TimerGameTick > | _new_competitor_timeout |
| static const SaveLoad | _date_desc [] |
| static const SaveLoad | _date_check_desc [] |
| static const SaveLoad | _view_desc [] |
| static const DATEChunkHandler | DATE |
| static const VIEWChunkHandler | VIEW |
| static const ChunkHandlerRef | misc_chunk_handlers [] |
| int | _saved_scrollpos_x |
| int | _saved_scrollpos_y |
| ZoomLevel | _saved_scrollpos_zoom |
Saving and loading of things that didn't fit anywhere else.
Definition in file misc_sl.cpp.
| void ResetViewportAfterLoadGame | ( | ) |
Definition at line 56 of file misc_sl.cpp.
| void SaveViewportBeforeSaveGame | ( | ) |
Definition at line 40 of file misc_sl.cpp.
| uint8_t _age_cargo_skip_counter |
Skip aging of cargo? Used before savegame version 162.
Definition at line 81 of file misc_sl.cpp.
Referenced by OrderList::AfterLoadVehiclesPhase1.
|
extern |
Definition at line 799 of file landscape.cpp.
|
static |
Definition at line 112 of file misc_sl.cpp.
|
static |
Definition at line 84 of file misc_sl.cpp.
|
extern |
Delay counter for considering the next disaster.
Definition at line 57 of file disaster_vehicle.cpp.
| int _saved_scrollpos_x |
Keep track of current game position.
Definition at line 35 of file misc_sl.cpp.
Referenced by AfterLoadGame().
| int _saved_scrollpos_y |
Keep track of current game position.
Definition at line 36 of file misc_sl.cpp.
Referenced by AfterLoadGame().
| ZoomLevel _saved_scrollpos_zoom |
Keep track of current game position.
Definition at line 37 of file misc_sl.cpp.
Referenced by AfterLoadGame().
|
extern |
Determines when to consider building more trees.
Definition at line 45 of file tree_cmd.cpp.
Referenced by DecrementTreeCounter().
|
static |
Definition at line 157 of file misc_sl.cpp.
|
static |
Definition at line 186 of file misc_sl.cpp.
|
static |
Definition at line 188 of file misc_sl.cpp.
|
static |
Definition at line 187 of file misc_sl.cpp.