42 ASSERT(!c->
IsPet() &&
"ObjectGridRespawnMover must not be called for pets");
94 if (obj->isActiveObject())
103 for (CellGuidSet::const_iterator i_guid = guid_set.begin(); i_guid != guid_set.end(); ++i_guid)
112 if (!obj->LoadFromDB(guid, map,
false,
false))
140 for (
Corpse* corpse : *corpses)
142 corpse->AddToWorld();
144 if (corpse->IsStoredInWorldObjectGridContainer())
192 obj->CleanupsBeforeDelete();
203 iter->GetSource()->RemoveAllDynObjects();
204 if (iter->GetSource()->IsInCombat())
205 iter->GetSource()->CombatStop();
213 iter->GetSource()->CleanupsBeforeDelete();
223template void ObjectGridCleaner::Visit<Corpse>(
CorpseMapType &);
#define MAX_NUMBER_OF_CELLS
#define TC_LOG_DEBUG(filterType__,...)
void AddObjectHelper(CellCoord &cell, GridRefManager< T > &m, uint32 &count, Map *map, T *obj)
void LoadHelper(CellGuidSet const &guid_set, CellCoord &cell, GridRefManager< T > &m, uint32 &count, Map *map)
std::set< ObjectGuid::LowType > CellGuidSet
GridReference< OBJECT > * getFirst()
void AddWorldObject(SPECIFIC_OBJECT *obj)
void AddGridObject(SPECIFIC_OBJECT *obj)
void SetCurrentCell(Cell const &cell)
std::unordered_set< Corpse * > const * GetCorpsesInCell(uint32 cellId) const
uint8 GetSpawnMode() const
bool GameObjectRespawnRelocation(GameObject *go, bool diffGridOnly)
void AddToActive(WorldObject *obj)
bool CreatureRespawnRelocation(Creature *c, bool diffGridOnly)
bool ShouldBeSpawnedOnGridLoad(SpawnObjectType type, ObjectGuid::LowType spawnId) const
uint32 GetGridId(void) const
GridType & GetGridType(const uint32 x, const uint32 y)
void VisitGrid(const uint32 x, const uint32 y, TypeContainerVisitor< T, TypeMapContainer< TT > > &visitor)
void Visit(GridRefManager< T > &)
void Visit(CreatureMapType &m)
void Visit(GameObjectMapType &m)
static void SetObjectCell(MapObject *obj, CellCoord const &cellCoord)
void Visit(CreatureMapType &m)
void Visit(CorpseMapType &)
ObjectWorldLoader(ObjectGridLoader &gloader)
void Visit(CorpseMapType &m)
void Visit(GridRefManager< T > &)
CellCoord GetCellCoord() const
struct Cell::@256::@257 Part