AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
MMAP::TileConfig Struct Reference

#include "MapBuilder.h"

Public Member Functions

 TileConfig (bool bigBaseUnit)
 

Public Attributes

float BASE_UNIT_DIM
 
int VERTEX_PER_MAP
 
int VERTEX_PER_TILE
 
int TILES_PER_MAP
 

Detailed Description

Constructor & Destructor Documentation

◆ TileConfig()

MMAP::TileConfig::TileConfig ( bool  bigBaseUnit)
inline
79 {
80 // these are WORLD UNIT based metrics
81 // this are basic unit dimentions
82 // value have to divide GRID_SIZE(533.3333f) ( aka: 0.5333, 0.2666, 0.3333, 0.1333, etc )
83 BASE_UNIT_DIM = bigBaseUnit ? 0.5333333f : 0.2666666f;
84
85 // All are in UNIT metrics!
87 VERTEX_PER_TILE = bigBaseUnit ? 40 : 80; // must divide VERTEX_PER_MAP
89 }
static const float GRID_SIZE
Definition: TerrainBuilder.h:49
int VERTEX_PER_MAP
Definition: MapBuilder.h:92
float BASE_UNIT_DIM
Definition: MapBuilder.h:91
int VERTEX_PER_TILE
Definition: MapBuilder.h:93
int TILES_PER_MAP
Definition: MapBuilder.h:94

References BASE_UNIT_DIM, MMAP::GRID_SIZE, TILES_PER_MAP, VERTEX_PER_MAP, and VERTEX_PER_TILE.

Member Data Documentation

◆ BASE_UNIT_DIM

float MMAP::TileConfig::BASE_UNIT_DIM

◆ TILES_PER_MAP

int MMAP::TileConfig::TILES_PER_MAP

◆ VERTEX_PER_MAP

int MMAP::TileConfig::VERTEX_PER_MAP

Referenced by TileConfig().

◆ VERTEX_PER_TILE

int MMAP::TileConfig::VERTEX_PER_TILE