forked from 0ad/0ad
janwas
0bb0df5b2c
- remove headers always included from PCH - nommgr.h is only included ifdef REDEFINED_NEW (allows leaving out the mmgr stuff) - in lib/*.cpp, moved the corresponding include file to right behind the PCH (catches headers that aren't compilable by themselves) - byte_order no longer depends on SDL - add debug_level (another means of filtering debug output; needed for thesis) - split posix stuff up into subdirs (lib/posix and sysdep/win/wposix). makes including only some of the modules (e.g. sockets, time) much easier. This was SVN commit r4728.
34 lines
746 B
C++
34 lines
746 B
C++
#ifndef _MAPIO_H
|
|
#define _MAPIO_H
|
|
|
|
class CMapIO
|
|
{
|
|
public:
|
|
// current file version given to saved maps
|
|
enum { FILE_VERSION = 4 };
|
|
// supported file read version - file with version less than this will be reject
|
|
enum { FILE_READ_VERSION = 1 };
|
|
|
|
#pragma pack(push, 1)
|
|
// description of a tile for I/O purposes
|
|
struct STileDesc {
|
|
// index into the texture array of first texture on tile
|
|
u16 m_Tex1Index;
|
|
// index into the texture array of second texture; (0xFFFF) if none
|
|
u16 m_Tex2Index;
|
|
// priority
|
|
u32 m_Priority;
|
|
};
|
|
|
|
// description of an object for I/O purposes
|
|
struct SObjectDesc {
|
|
// index into the object array
|
|
u16 m_ObjectIndex;
|
|
// transformation matrix
|
|
float m_Transform[16];
|
|
};
|
|
#pragma pack(pop)
|
|
};
|
|
|
|
#endif
|