OpenTTD
saveload_internal.h
Go to the documentation of this file.
1 /* $Id: saveload_internal.h 25620 2013-07-21 13:18:45Z zuu $ */
2 
3 /*
4  * This file is part of OpenTTD.
5  * 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.
6  * 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.
7  * 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  */
9 
12 #ifndef SAVELOAD_INTERNAL_H
13 #define SAVELOAD_INTERNAL_H
14 
15 #include "../company_manager_face.h"
16 #include "../order_base.h"
17 #include "../engine_type.h"
18 #include "saveload.h"
19 
20 void InitializeOldNames();
22 char *CopyFromOldName(StringID id);
23 void ResetOldNames();
24 
28 
29 void AfterLoadVehicles(bool part_of_load);
30 void FixupTrainLengths();
31 void AfterLoadStations();
32 void AfterLoadRoadStops();
33 void AfterLoadLabelMaps();
34 void AfterLoadStoryBook();
35 void AfterLoadLinkGraphs();
38 
39 void UpdateOldAircraft();
40 
41 void SaveViewportBeforeSaveGame();
42 void ResetViewportAfterLoadGame();
43 
46 
47 Engine *GetTempDataEngine(EngineID index);
48 void CopyTempEngineData();
49 
50 extern int32 _saved_scrollpos_x;
51 extern int32 _saved_scrollpos_y;
52 extern ZoomLevelByte _saved_scrollpos_zoom;
53 
55 extern uint32 _ttdp_version;
56 
58 
59 Order UnpackOldOrder(uint16 packed);
60 
61 #endif /* SAVELOAD_INTERNAL_H */