10#ifndef SAVELOAD_INTERNAL_H
11#define SAVELOAD_INTERNAL_H
24void ResetOldWaypoints();
31void AfterLoadStations();
41void SaveViewportBeforeSaveGame();
42void ResetViewportAfterLoadGame();
47void ResetTempEngineData();
OldEngineRenewPool _old_engine_renew_saveload_pool
Temporary storage for conversion from old engine renew pool.
Types related to autoreplacing.
Helper class to handle conversion of linked-list style pools to plain vectors.
Types related to engines.
PoolID< uint16_t, struct EngineIDTag, 64000, 0xFFFF > EngineID
Unique identification number of an engine.
uint32_t _ttdp_version
version of TTDP savegame (if applicable)
SavegameType _savegame_type
type of savegame we are loading
ZoomLevel _saved_scrollpos_zoom
OldOrderPool _old_order_saveload_pool
Temporary storage for conversion from old order pool.
Functions/types related to saving and loading games.
SavegameType
Types of save games.
OldSaveLoadPool< Order > OldOrderPool
Type for conversion of old order pool.
void AfterLoadVehiclesPhase1(bool part_of_load)
Called after load for phase 1 of vehicle initialisation.
Order UnpackOldOrder(uint16_t packed)
Unpacks a order from savegames made with TTD(Patch).
void ResetOldNames()
Free the memory of the old names array.
void FixupTrainLengths()
Fixup old train spacing.
void MoveBuoysToWaypoints()
Perform all steps to upgrade from the old station buoys to the new version that uses waypoints.
StringID RemapOldStringID(StringID s)
Remap a string ID from the old format to the new format.
Engine * GetTempDataEngine(EngineID index, VehicleType type=VehicleType::Invalid, uint16_t local_id=0)
Get temporary engine data for loading savegame engine information.
void UpdateOldAircraft()
need to be called to load aircraft from old version
void ConvertOldMultiheadToNew()
Converts all trains to the new subtype format introduced in savegame 16.2 It also links multiheaded e...
void ConnectMultiheadedTrains()
Link front and rear multiheaded engines to each other This is done when loading a savegame.
void AfterLoadLinkGraphs()
Spawn the threads for running link graph calculations.
void AfterLoadRoadStops()
(Re)building of road stop caches after loading a savegame.
OldSaveLoadPool< OldEngineRenew > OldEngineRenewPool
Type for conversion of old engine renew pool.
void AfterLoadCompanyStats()
Rebuilding of company statistics after loading a savegame.
CompanyManagerFace ConvertFromOldCompanyManagerFace(uint32_t face)
Converts an old company manager's face format to the new company manager's face format.
void MoveWaypointsToBaseStations()
Perform all steps to upgrade from the old waypoints to the new version that uses station.
void AfterLoadVehiclesPhase2(bool part_of_load)
Called after load for phase 2 of vehicle initialisation.
void UpdateHousesAndTowns()
Check and update town and house values.
void InitializeOldNames()
Initialize the old names table memory.
std::string CopyFromOldName(StringID id)
Copy and convert old custom names to UTF-8.
void AfterLoadStoryBook()
Called after load to trash broken pages.
void CopyTempEngineData()
Copy data from temporary engine array into the real engine pool.
void AfterLoadLabelMaps()
Perform rail type and road type conversion if necessary.
Helper class to handle conversion of objects from pool storage.
StrongType::Typedef< uint32_t, struct StringIDTag, StrongType::Compare, StrongType::Integer > StringID
Numeric value that represents a string, independent of the selected language.
If you change this, keep in mind that it is also saved in 2 other places:
VehicleType
Available vehicle types.
@ Invalid
Non-existing type of vehicle.
ZoomLevel
All zoom levels we know.