airport_sl.cpp

Go to the documentation of this file.
00001 /* $Id$ */
00002 
00003 /*
00004  * This file is part of OpenTTD.
00005  * 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.
00006  * 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.
00007  * 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/>.
00008  */
00009 
00012 #include "../stdafx.h"
00013 
00014 #include "saveload.h"
00015 #include "newgrf_sl.h"
00016 
00017 static void Save_APID()
00018 {
00019   Save_NewGRFMapping(_airport_mngr);
00020 }
00021 
00022 static void Load_APID()
00023 {
00024   Load_NewGRFMapping(_airport_mngr);
00025 }
00026 
00027 static void Save_ATID()
00028 {
00029   Save_NewGRFMapping(_airporttile_mngr);
00030 }
00031 
00032 static void Load_ATID()
00033 {
00034   Load_NewGRFMapping(_airporttile_mngr);
00035 }
00036 
00037 extern const ChunkHandler _airport_chunk_handlers[] = {
00038   { 'ATID', Save_ATID, Load_ATID, NULL, NULL, CH_ARRAY },
00039   { 'APID', Save_APID, Load_APID, NULL, NULL, CH_ARRAY | CH_LAST },
00040 };

Generated on Wed Apr 13 00:47:53 2011 for OpenTTD by  doxygen 1.6.1