#include "ObjectGridLoader.h"
◆ ObjectGridLoader()
ObjectGridLoader::ObjectGridLoader |
( |
NGridType & |
grid, |
|
|
Map * |
map, |
|
|
const Cell & |
cell |
|
) |
| |
|
inline |
36 {}
Cell i_cell
Definition: ObjectGridLoader.h:48
uint32 i_creatures
Definition: ObjectGridLoader.h:52
Map * i_map
Definition: ObjectGridLoader.h:50
uint32 i_corpses
Definition: ObjectGridLoader.h:53
uint32 i_gameObjects
Definition: ObjectGridLoader.h:51
NGridType & i_grid
Definition: ObjectGridLoader.h:49
◆ LoadN()
void ObjectGridLoader::LoadN |
( |
void |
| ) |
|
184{
190 {
193 {
195
196
197 {
200 }
201
202
203 {
207 }
208 }
209 }
211}
#define LOG_DEBUG(filterType__,...)
Definition: Log.h:168
std::uint32_t uint32
Definition: Define.h:107
#define MAX_NUMBER_OF_CELLS
Definition: GridDefines.h:35
Definition: TypeContainerVisitor.h:84
unsigned cell_y
Definition: Cell.h:99
struct Cell::@289::@290 Part
unsigned cell_x
Definition: Cell.h:98
uint32 GetGridId() const
Definition: NGrid.h:57
void VisitGrid(const uint32 x, const uint32 y, TypeContainerVisitor< T, TypeMapContainer< TT > > &visitor)
Definition: NGrid.h:101
Definition: ObjectGridLoader.cpp:32
uint32 GetId() const
Definition: Map.h:379
References Cell::cell_x, Cell::cell_y, Cell::data, NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::GetGridId(), Map::GetId(), i_cell, i_corpses, i_creatures, i_gameObjects, i_grid, i_map, LOG_DEBUG, MAX_NUMBER_OF_CELLS, Cell::Part, and NGrid< N, ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::VisitGrid().
Referenced by Map::EnsureGridLoaded().
◆ SetObjectCell() [1/3]
◆ SetObjectCell() [2/3]
◆ SetObjectCell() [3/3]
template<class T >
void ObjectGridLoader::SetObjectCell |
( |
T * |
obj, |
|
|
CellCoord const & |
cellCoord |
|
) |
| |
|
static |
◆ Visit() [1/4]
◆ Visit() [2/4]
158{
162}
#define sObjectMgr
Definition: ObjectMgr.h:1623
void LoadHelper(CellGuidSet const &, CellCoord &, GridRefMgr< T > &, uint32 &, Map *)
Definition: ObjectGridLoader.cpp:100
Definition: ObjectMgr.h:479
CellGuidSet creatures
Definition: ObjectMgr.h:480
CellCoord GetCellCoord() const
Definition: Cell.h:77
uint32 GetId() const
Definition: GridDefines.h:148
uint8 GetSpawnMode() const
Definition: Map.h:420
References CellObjectGuids::creatures, Cell::GetCellCoord(), CoordPair< LIMIT >::GetId(), Map::GetId(), Map::GetSpawnMode(), i_cell, i_creatures, i_map, LoadHelper(), and sObjectMgr.
◆ Visit() [3/4]
◆ Visit() [4/4]
◆ ObjectWorldLoader
◆ i_cell
Cell ObjectGridLoader::i_cell |
|
private |
◆ i_corpses
uint32 ObjectGridLoader::i_corpses |
|
private |
◆ i_creatures
uint32 ObjectGridLoader::i_creatures |
|
private |
◆ i_gameObjects
uint32 ObjectGridLoader::i_gameObjects |
|
private |
◆ i_grid
◆ i_map
Map* ObjectGridLoader::i_map |
|
private |