OpenTTD Source
20240919-master-gdf0233f4c2
|
Go to the documentation of this file.
10 #ifndef SAVELOAD_INTERNAL_H
11 #define SAVELOAD_INTERNAL_H
13 #include "../company_manager_face.h"
14 #include "../order_base.h"
15 #include "../engine_type.h"
23 void ResetOldWaypoints();
29 void AfterLoadStations();
31 void ResetLabelMaps();
32 void AfterLoadLabelMaps();
40 void SaveViewportBeforeSaveGame();
41 void ResetViewportAfterLoadGame();
46 void ResetTempEngineData();
50 extern int32_t _saved_scrollpos_x;
51 extern int32_t _saved_scrollpos_y;
StringID RemapOldStringID(StringID s)
Remap a string ID from the old format to the new format.
void AfterLoadRoadStops()
(Re)building of road stop caches after loading a savegame.
uint32_t StringID
Numeric value that represents a string, independent of the selected language.
void UpdateOldAircraft()
need to be called to load aircraft from old version
SavegameType _savegame_type
type of savegame we are loading
Order UnpackOldOrder(uint16_t packed)
Unpacks a order from savegames made with TTD(Patch)
SavegameType
Types of save games.
void AfterLoadStoryBook()
Called after load to trash broken pages.
std::string CopyFromOldName(StringID id)
Copy and convert old custom names to UTF-8.
void AfterLoadLinkGraphs()
Spawn the threads for running link graph calculations.
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.
uint32_t CompanyManagerFace
Company manager face bits, info see in company_manager_face.h.
void InitializeOldNames()
Initialize the old names table memory.
void MoveBuoysToWaypoints()
Perform all steps to upgrade from the old station buoys to the new version that uses waypoints.
void FixupTrainLengths()
Fixup old train spacing.
void CopyTempEngineData()
Copy data from temporary engine array into the real engine pool.
void AfterLoadVehicles(bool part_of_load)
Called after load to update coordinates.
uint32_t _ttdp_version
version of TTDP savegame (if applicable)
void ConnectMultiheadedTrains()
Link front and rear multiheaded engines to each other This is done when loading a savegame.
void AfterLoadCompanyStats()
Rebuilding of company statistics after loading a savegame.
void UpdateHousesAndTowns()
Check and update town and house values.
uint16_t EngineID
Unique identification number of an engine.
void ResetOldNames()
Free the memory of the old names array.
void ConvertOldMultiheadToNew()
Converts all trains to the new subtype format introduced in savegame 16.2 It also links multiheaded e...
ZoomLevel
All zoom levels we know.