Pyrogenesis
13997
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
source
graphics
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
= 5 };
26
// supported file read version - file with version less than this will be reject
27
enum
{
FILE_READ_VERSION
= 5 };
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
33
u16
m_Tex1Index
;
34
// index into the texture array of second texture; (0xFFFF) if none
35
u16
m_Tex2Index
;
36
// priority
37
u32
m_Priority
;
38
};
39
#pragma pack(pop)
40
};
41
42
#endif
CMapIO::STileDesc
Definition:
MapIO.h:31
CMapIO::STileDesc::m_Priority
u32 m_Priority
Definition:
MapIO.h:37
CMapIO::STileDesc::m_Tex2Index
u16 m_Tex2Index
Definition:
MapIO.h:35
CMapIO::FILE_VERSION
Definition:
MapIO.h:25
CMapIO::STileDesc::m_Tex1Index
u16 m_Tex1Index
Definition:
MapIO.h:33
CMapIO::FILE_READ_VERSION
Definition:
MapIO.h:27
u16
#define u16
Definition:
types.h:40
u32
#define u32
Definition:
types.h:41
CMapIO
Definition:
MapIO.h:21
Generated on Mon Oct 14 2013 00:58:06 for Pyrogenesis by
1.8.5