Codechange: Pass GRFConfig by reference where feasible. (#13388)
[openttd-github.git] / src / saveload / saveload_internal.h
blob7e35000c7fffe2a369a2a40ccea0dc9d7714a03b
1 /*
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/>.
6 */
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"
16 #include "saveload.h"
18 void InitializeOldNames();
19 StringID RemapOldStringID(StringID s);
20 std::string CopyFromOldName(StringID id);
21 void ResetOldNames();
23 void ResetOldWaypoints();
24 void MoveBuoysToWaypoints();
25 void MoveWaypointsToBaseStations();
27 void AfterLoadVehiclesPhase1(bool part_of_load);
28 void AfterLoadVehiclesPhase2(bool part_of_load);
29 void FixupTrainLengths();
30 void AfterLoadStations();
31 void AfterLoadRoadStops();
32 void ResetLabelMaps();
33 void AfterLoadLabelMaps();
34 void AfterLoadStoryBook();
35 void AfterLoadLinkGraphs();
36 void AfterLoadCompanyStats();
37 void UpdateHousesAndTowns();
39 void UpdateOldAircraft();
41 void SaveViewportBeforeSaveGame();
42 void ResetViewportAfterLoadGame();
44 void ConvertOldMultiheadToNew();
45 void ConnectMultiheadedTrains();
47 void ResetTempEngineData();
48 Engine *GetTempDataEngine(EngineID index);
49 void CopyTempEngineData();
51 extern int32_t _saved_scrollpos_x;
52 extern int32_t _saved_scrollpos_y;
53 extern ZoomLevel _saved_scrollpos_zoom;
55 extern SavegameType _savegame_type;
56 extern uint32_t _ttdp_version;
58 CompanyManagerFace ConvertFromOldCompanyManagerFace(uint32_t face);
60 Order UnpackOldOrder(uint16_t packed);
62 #endif /* SAVELOAD_INTERNAL_H */