TrinityCore
MapDefines.h File Reference
#include "Define.h"
#include "EnumFlag.h"
#include <array>
+ Include dependency graph for MapDefines.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  map_fileheader
 
struct  map_areaHeader
 
struct  map_heightHeader
 
struct  map_liquidHeader
 

Typedefs

using u_map_magic = std::array< char, 4 >
 Represents a map magic value of 4 bytes (used in versions) More...
 

Enumerations

enum  map_areaHeaderFlags : uint16 { map_areaHeaderFlags::None = 0x0000, map_areaHeaderFlags::NoArea = 0x0001 }
 
enum  map_heightHeaderFlags : uint32 {
  map_heightHeaderFlags::None = 0x0000, map_heightHeaderFlags::NoHeight = 0x0001, map_heightHeaderFlags::HeightAsInt16 = 0x0002, map_heightHeaderFlags::HeightAsInt8 = 0x0004,
  map_heightHeaderFlags::HasFlightBounds = 0x0008
}
 
enum  map_liquidHeaderFlags : uint8 { map_liquidHeaderFlags::None = 0x0000, map_liquidHeaderFlags::NoType = 0x0001, map_liquidHeaderFlags::NoHeight = 0x0002 }
 
enum  map_liquidHeaderTypeFlags : uint8 {
  map_liquidHeaderTypeFlags::NoWater = 0x00, map_liquidHeaderTypeFlags::Water = 0x01, map_liquidHeaderTypeFlags::Ocean = 0x02, map_liquidHeaderTypeFlags::Magma = 0x04,
  map_liquidHeaderTypeFlags::Slime = 0x08, map_liquidHeaderTypeFlags::DarkWater = 0x10, map_liquidHeaderTypeFlags::AllLiquids = Water | Ocean | Magma | Slime
}
 

Functions

 DEFINE_ENUM_FLAG (map_areaHeaderFlags)
 
 DEFINE_ENUM_FLAG (map_heightHeaderFlags)
 
 DEFINE_ENUM_FLAG (map_liquidHeaderFlags)
 
 DEFINE_ENUM_FLAG (map_liquidHeaderTypeFlags)
 

Variables

TC_COMMON_API u_map_magic const MapMagic
 
TC_COMMON_API uint32 const MapVersionMagic
 
TC_COMMON_API u_map_magic const MapAreaMagic
 
TC_COMMON_API u_map_magic const MapHeightMagic
 
TC_COMMON_API u_map_magic const MapLiquidMagic
 

Typedef Documentation

◆ u_map_magic

using u_map_magic = std::array<char, 4>

Represents a map magic value of 4 bytes (used in versions)

Enumeration Type Documentation

◆ map_areaHeaderFlags

enum map_areaHeaderFlags : uint16
strong
Enumerator
None 
NoArea 
52  : uint16
53 {
54  None = 0x0000,
55  NoArea = 0x0001
56 };
uint16_t uint16
Definition: Define.h:144

◆ map_heightHeaderFlags

Enumerator
None 
NoHeight 
HeightAsInt16 
HeightAsInt8 
HasFlightBounds 

◆ map_liquidHeaderFlags

Enumerator
None 
NoType 
NoHeight 
86  : uint8
87 {
88  None = 0x0000,
89  NoType = 0x0001,
90  NoHeight = 0x0002
91 };
uint8_t uint8
Definition: Define.h:145

◆ map_liquidHeaderTypeFlags

Enumerator
NoWater 
Water 
Ocean 
Magma 
Slime 
DarkWater 
AllLiquids 

Function Documentation

◆ DEFINE_ENUM_FLAG() [1/4]

DEFINE_ENUM_FLAG ( map_areaHeaderFlags  )

◆ DEFINE_ENUM_FLAG() [2/4]

DEFINE_ENUM_FLAG ( map_heightHeaderFlags  )

◆ DEFINE_ENUM_FLAG() [3/4]

DEFINE_ENUM_FLAG ( map_liquidHeaderFlags  )

◆ DEFINE_ENUM_FLAG() [4/4]

DEFINE_ENUM_FLAG ( map_liquidHeaderTypeFlags  )

Variable Documentation

◆ MapAreaMagic

TC_COMMON_API u_map_magic const MapAreaMagic

◆ MapHeightMagic

TC_COMMON_API u_map_magic const MapHeightMagic

◆ MapLiquidMagic

TC_COMMON_API u_map_magic const MapLiquidMagic

◆ MapMagic

TC_COMMON_API u_map_magic const MapMagic

◆ MapVersionMagic

TC_COMMON_API uint32 const MapVersionMagic