OpenTTD: src/saveload/airport_sl.cpp Source File

OpenTTD

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files

- File List
- Globals

airport_sl.cpp
Go to the documentation of this file.
1 /* $Id: airport_sl.cpp 26482 2014-04-23 20:13:33Z rubidium $ */
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 #include "../stdafx.h"
13
14 #include "saveload.h"
15 #include "newgrf_sl.h"
16
17 #include "../safeguards.h"
18
19 static void Save_APID()
20 {
21 Save_NewGRFMapping(_airport_mngr);
22 }
23
24 static void Load_APID()
25 {
26 Load_NewGRFMapping(_airport_mngr);
27 }
28
29 static void Save_ATID()
30 {
31 Save_NewGRFMapping(_airporttile_mngr);
32 }
33
34 static void Load_ATID()
35 {
36 Load_NewGRFMapping(_airporttile_mngr);
37 }
38
39 extern const ChunkHandler _airport_chunk_handlers[] = {
40 { 'ATID', Save_ATID, Load_ATID, NULL, NULL, CH_ARRAY },
41 { 'APID', Save_APID, Load_APID, NULL, NULL, CH_ARRAY | CH_LAST },
42 };