AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
MMAP::MMapFactory Class Reference

#include "MMapFactory.h"

Static Public Member Functions

static MMapMgrcreateOrGetMMapMgr ()
 
static void clear ()
 
static void InitializeDisabledMaps ()
 

Static Public Attributes

static bool forbiddenMaps [1000] = {0}
 

Detailed Description

Member Function Documentation

◆ clear()

void MMAP::MMapFactory::clear ( )
static
49 {
50 if (g_MMapMgr)
51 {
52 delete g_MMapMgr;
53 g_MMapMgr = nullptr;
54 }
55 }
MMapMgr * g_MMapMgr
Definition: MMapFactory.cpp:24

References MMAP::g_MMapMgr.

Referenced by World::~World().

◆ createOrGetMMapMgr()

◆ InitializeDisabledMaps()

void MMAP::MMapFactory::InitializeDisabledMaps ( )
static
38 {
39 memset(&forbiddenMaps, 0, sizeof(forbiddenMaps));
40 int32 f[] = {616 /*EoE*/, 649 /*ToC25*/, 650 /*ToC5*/, -1};
41 uint32 i = 0;
42 while (f[i] >= 0)
43 {
44 forbiddenMaps[f[i++]] = true;
45 }
46 }
std::int32_t int32
Definition: Define.h:103
std::uint32_t uint32
Definition: Define.h:107
static bool forbiddenMaps[1000]
Definition: MMapFactory.h:41

References forbiddenMaps.

Referenced by World::LoadConfigSettings().

Member Data Documentation

◆ forbiddenMaps

bool MMAP::MMapFactory::forbiddenMaps = {0}
static