Pyrogenesis  trunk
MapIO.h
Go to the documentation of this file.
1 /* Copyright (C) 2009 Wildfire Games.
2  * This file is part of 0 A.D.
3  *
4  * 0 A.D. is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * 0 A.D. is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with 0 A.D. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef INCLUDED_MAPIO
19 #define INCLUDED_MAPIO
20 
21 class CMapIO
22 {
23 public:
24  // current file version given to saved maps
25  enum { FILE_VERSION = 6 };
26  // supported file read version - file with version less than this will be reject
27  enum { FILE_READ_VERSION = 6 };
28 
29 #pragma pack(push, 1)
30  // description of a tile for I/O purposes
31  struct STileDesc {
32  // index into the texture array of first texture on tile
34  // index into the texture array of second texture; (0xFFFF) if none
36  // priority
38  };
39 #pragma pack(pop)
40 };
41 
42 #endif
Definition: MapIO.h:31
uint16_t u16
Definition: types.h:38
u32 m_Priority
Definition: MapIO.h:37
u16 m_Tex2Index
Definition: MapIO.h:35
u16 m_Tex1Index
Definition: MapIO.h:33
uint32_t u32
Definition: types.h:39
Definition: MapIO.h:27
Definition: MapIO.h:21
Definition: MapIO.h:25