Update: Translations from eints
[openttd-github.git] / src / saveload / airport_sl.cpp
blobd83c45b048eecd18b4a2ff02ade928ff2599a1b6
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 airport_sl.cpp Code handling saving and loading airport ids */
10 #include "../stdafx.h"
12 #include "saveload.h"
13 #include "newgrf_sl.h"
15 #include "../safeguards.h"
17 struct APIDChunkHandler : NewGRFMappingChunkHandler {
18 APIDChunkHandler() : NewGRFMappingChunkHandler('APID', _airport_mngr) {}
21 struct ATIDChunkHandler : NewGRFMappingChunkHandler {
22 ATIDChunkHandler() : NewGRFMappingChunkHandler('ATID', _airporttile_mngr) {}
25 static const ATIDChunkHandler ATID;
26 static const APIDChunkHandler APID;
27 static const ChunkHandlerRef airport_chunk_handlers[] = {
28 ATID,
29 APID,
32 extern const ChunkHandlerTable _airport_chunk_handlers(airport_chunk_handlers);