2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
8 /** @file saveload_internal.h Declaration of functions used in more save/load files */
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"
18 void InitializeOldNames();
19 StringID
RemapOldStringID(StringID s
);
20 std::string
CopyFromOldName(StringID id
);
23 void ResetOldWaypoints();
24 void MoveBuoysToWaypoints();
25 void MoveWaypointsToBaseStations();
27 void AfterLoadVehicles(bool part_of_load
);
28 void FixupTrainLengths();
29 void AfterLoadStations();
30 void AfterLoadRoadStops();
31 void ResetLabelMaps();
32 void AfterLoadLabelMaps();
33 void AfterLoadStoryBook();
34 void AfterLoadLinkGraphs();
35 void AfterLoadCompanyStats();
36 void UpdateHousesAndTowns();
38 void UpdateOldAircraft();
40 void SaveViewportBeforeSaveGame();
41 void ResetViewportAfterLoadGame();
43 void ConvertOldMultiheadToNew();
44 void ConnectMultiheadedTrains();
46 void ResetTempEngineData();
47 Engine
*GetTempDataEngine(EngineID index
);
48 void CopyTempEngineData();
50 extern int32_t _saved_scrollpos_x
;
51 extern int32_t _saved_scrollpos_y
;
52 extern ZoomLevel _saved_scrollpos_zoom
;
54 extern SavegameType _savegame_type
;
55 extern uint32_t _ttdp_version
;
57 CompanyManagerFace
ConvertFromOldCompanyManagerFace(uint32_t face
);
59 Order
UnpackOldOrder(uint16_t packed
);
61 #endif /* SAVELOAD_INTERNAL_H */