AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
MMapMgr.h File Reference
#include "Common.h"
#include "DetourAlloc.h"
#include "DetourExtended.h"
#include "DetourNavMesh.h"
#include <memory>

Go to the source code of this file.

Classes

struct  MMAP::NavMeshDeleter
 
struct  MMAP::NavMeshQueryDeleter
 
class  MMAP::MMapMgr
 

Namespaces

namespace  MMAP
 

Typedefs

using MMAP::ManagedNavMeshQuery = std::unique_ptr< dtNavMeshQuery, NavMeshQueryDeleter >
 

Enumerations

enum  MMAP::MMAP_LOAD_RESULT {
  MMAP::MMAP_LOAD_RESULT_ERROR ,
  MMAP::MMAP_LOAD_RESULT_OK ,
  MMAP::MMAP_LOAD_RESULT_IGNORED
}
 

Functions

void * dtCustomAlloc (std::size_t size, dtAllocHint)
 
void dtCustomFree (void *ptr)
 

Variables

static char const *const MMAP::MAP_FILE_NAME_FORMAT = "{}/mmaps/{:03}.mmap"
 
static char const *const MMAP::TILE_FILE_NAME_FORMAT = "{}/mmaps/{:03}{:02}{:02}.mmtile"
 

Function Documentation

◆ dtCustomAlloc()

void * dtCustomAlloc ( std::size_t  size,
dtAllocHint   
)
inline
29{
30 return (void*)new unsigned char[size];
31}

Referenced by World::SetInitialWorldSettings().

◆ dtCustomFree()

void dtCustomFree ( void *  ptr)
inline
34{
35 delete [] (unsigned char*)ptr;
36}

Referenced by World::SetInitialWorldSettings().