2009-01-04 15:32:25 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
2009-08-21 20:21:05 +00:00
|
|
|
/*
|
|
|
|
* This file is part of OpenTTD.
|
|
|
|
* 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.
|
|
|
|
* 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.
|
|
|
|
* 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/>.
|
|
|
|
*/
|
|
|
|
|
2009-01-04 15:32:25 +00:00
|
|
|
/** @file saveload_internal.h Declaration of functions used in more save/load files */
|
|
|
|
|
|
|
|
#ifndef SAVELOAD_INTERNAL_H
|
|
|
|
#define SAVELOAD_INTERNAL_H
|
|
|
|
|
|
|
|
#include "../company_manager_face.h"
|
|
|
|
#include "../order_base.h"
|
2009-01-20 13:56:35 +00:00
|
|
|
#include "../engine_type.h"
|
2009-01-23 02:35:17 +00:00
|
|
|
#include "saveload.h"
|
2009-01-04 15:32:25 +00:00
|
|
|
|
|
|
|
void InitializeOldNames();
|
|
|
|
StringID RemapOldStringID(StringID s);
|
|
|
|
char *CopyFromOldName(StringID id);
|
|
|
|
void ResetOldNames();
|
|
|
|
|
2009-07-22 08:59:57 +00:00
|
|
|
void MoveBuoysToWaypoints();
|
|
|
|
void MoveWaypointsToBaseStations();
|
|
|
|
const SaveLoad *GetBaseStationDescription();
|
|
|
|
|
2009-01-04 15:32:25 +00:00
|
|
|
void AfterLoadVehicles(bool part_of_load);
|
|
|
|
void AfterLoadStations();
|
2009-12-04 20:52:19 +00:00
|
|
|
void AfterLoadRoadStops();
|
2009-03-21 23:58:20 +00:00
|
|
|
void AfterLoadLabelMaps();
|
2009-01-04 15:32:25 +00:00
|
|
|
void UpdateHousesAndTowns();
|
|
|
|
|
|
|
|
void UpdateOldAircraft();
|
|
|
|
|
|
|
|
void SaveViewportBeforeSaveGame();
|
|
|
|
void ResetViewportAfterLoadGame();
|
|
|
|
|
|
|
|
void ConvertOldMultiheadToNew();
|
|
|
|
void ConnectMultiheadedTrains();
|
|
|
|
|
2009-01-20 13:56:35 +00:00
|
|
|
Engine *GetTempDataEngine(EngineID index);
|
|
|
|
void CopyTempEngineData();
|
|
|
|
|
2009-01-04 15:32:25 +00:00
|
|
|
extern int32 _saved_scrollpos_x;
|
|
|
|
extern int32 _saved_scrollpos_y;
|
2009-11-30 11:29:52 +00:00
|
|
|
extern ZoomLevelByte _saved_scrollpos_zoom;
|
2009-01-04 15:32:25 +00:00
|
|
|
|
2009-01-23 02:35:17 +00:00
|
|
|
extern SavegameType _savegame_type;
|
|
|
|
extern uint32 _ttdp_version;
|
|
|
|
|
2009-01-04 15:32:25 +00:00
|
|
|
CompanyManagerFace ConvertFromOldCompanyManagerFace(uint32 face);
|
|
|
|
|
|
|
|
Order UnpackOldOrder(uint16 packed);
|
|
|
|
|
|
|
|
#endif /* SAVELOAD_INTERNAL_H */
|