TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
MapDefines.h
Go to the documentation of this file.
1 #ifndef _MAPDEFINES_H
2 #define _MAPDEFINES_H
3 
4 #include "Define.h"
5 #include "DetourNavMesh.h"
6 
7 const uint32 MMAP_MAGIC = 0x4d4d4150; // 'MMAP'
8 #define MMAP_VERSION 7
9 
11 {
16  bool usesLiquids : 1;
17 
18  MmapTileHeader() : mmapMagic(MMAP_MAGIC), dtVersion(DT_NAVMESH_VERSION),
19  mmapVersion(MMAP_VERSION), size(0), usesLiquids(true) { }
20 };
21 
23 {
24  NAV_EMPTY = 0x00,
25  NAV_GROUND = 0x01,
26  NAV_MAGMA = 0x02,
27  NAV_SLIME = 0x04,
28  NAV_WATER = 0x08,
29  NAV_UNUSED1 = 0x10,
30  NAV_UNUSED2 = 0x20,
31  NAV_UNUSED3 = 0x40,
32  NAV_UNUSED4 = 0x80
33  // we only have 8 bits
34 };
35 
36 #endif /* _MAPDEFINES_H */
Definition: MapDefines.h:26
Definition: MapDefines.h:28
Definition: MapDefines.h:25
uint32 mmapVersion
Definition: MapDefines.h:14
Definition: MapDefines.h:32
uint32 mmapMagic
Definition: MapDefines.h:12
Definition: MapDefines.h:27
NavTerrain
Definition: MapDefines.h:22
#define true
Definition: CascPort.h:17
MmapTileHeader()
Definition: MapDefines.h:18
uint32_t uint32
Definition: Define.h:150
Definition: MapDefines.h:29
Definition: MapDefines.h:10
Definition: MapDefines.h:30
uint32 dtVersion
Definition: MapDefines.h:13
Definition: MapDefines.h:31
bool usesLiquids
Definition: MapDefines.h:16
uint32 size
Definition: MapDefines.h:15
const uint32 MMAP_MAGIC
Definition: MapDefines.h:7
Definition: MapDefines.h:24
#define MMAP_VERSION
Definition: MapDefines.h:8
static const int DT_NAVMESH_VERSION
A version number used to detect compatibility of navigation tile data.
Definition: DetourNavMesh.h:69