12 #ifndef SAVELOAD_INTERNAL_H 13 #define SAVELOAD_INTERNAL_H 15 #include "../company_manager_face.h" 16 #include "../order_base.h" 17 #include "../engine_type.h" 31 void AfterLoadStations();
33 void AfterLoadLabelMaps();
41 void SaveViewportBeforeSaveGame();
42 void ResetViewportAfterLoadGame();
50 extern int32 _saved_scrollpos_x;
51 extern int32 _saved_scrollpos_y;
void UpdateOldAircraft()
need to be called to load aircraft from old version
void AfterLoadCompanyStats()
Rebuilding of company statistics after loading a savegame.
char * CopyFromOldName(StringID id)
Copy and convert old custom names to UTF-8.
void AfterLoadStoryBook()
Called after load to trash broken pages.
SavegameType
Types of save games.
uint32 CompanyManagerFace
Company manager face bits, info see in company_manager_face.h.
Functions/types related to saving and loading games.
void ConvertOldMultiheadToNew()
Converts all trains to the new subtype format introduced in savegame 16.2 It also links multiheaded e...
void MoveBuoysToWaypoints()
Perform all steps to upgrade from the old station buoys to the new version that uses waypoints...
void AfterLoadLinkGraphs()
Spawn the threads for running link graph calculations.
const SaveLoad * GetBaseStationDescription()
Get the base station description to be used for SL_ST_INCLUDE.
void UpdateHousesAndTowns()
Check and update town and house values.
uint32 StringID
Numeric value that represents a string, independent of the selected language.
void MoveWaypointsToBaseStations()
Perform all steps to upgrade from the old waypoints to the new version that uses station.
StringID RemapOldStringID(StringID s)
Remap a string ID from the old format to the new format.
void ResetOldNames()
Free the memory of the old names array.
void ConnectMultiheadedTrains()
Link front and rear multiheaded engines to each other This is done when loading a savegame...
SavegameType _savegame_type
type of savegame we are loading
uint16 EngineID
Unique identification number of an engine.
void FixupTrainLengths()
Fixup old train spacing.
uint32 _ttdp_version
version of TTDP savegame (if applicable)
void AfterLoadRoadStops()
(Re)building of road stop caches after loading a savegame.
void AfterLoadVehicles(bool part_of_load)
Called after load to update coordinates.
Order UnpackOldOrder(uint16 packed)
Unpacks a order from savegames made with TTD(Patch)
void CopyTempEngineData()
Copy data from temporary engine array into the real engine pool.
CompanyManagerFace ConvertFromOldCompanyManagerFace(uint32 face)
Converts an old company manager's face format to the new company manager's face format.
void InitializeOldNames()
Initialize the old names table memory.