public override void Visit(IList <Creature> objs) { CellCoord cellCoord = i_cell.GetCellCoord(); CellObjectGuids cell_guids = Global.ObjectMgr.GetCellPersonalObjectGuids(i_map.GetId(), i_map.GetDifficultyID(), _phaseId, cellCoord.GetId()); if (cell_guids != null) { LoadHelper <Creature>(cell_guids.creatures, cellCoord, ref i_creatures, i_map, _phaseId, _phaseOwner); } }
void VisitGameObjects(ref List <WorldObject> m) { CellCoord cellCoord = i_cell.GetCellCoord(); CellObjectGuids cell_guids = Cypher.ObjMgr.GetOrCreateCellObjectGuids(i_map.GetId(), (byte)i_map.GetSpawnMode(), cellCoord.GetId()); if (cell_guids == null) { return; } LoadHelper <GameObject>(cell_guids.gameobjects, cellCoord, ref m, ref i_gameObjects, i_map); }
public override void Visit(IList <Creature> objs) { CellCoord cellCoord = i_cell.GetCellCoord(); CellObjectGuids cellguids = Global.ObjectMgr.GetCellObjectGuids(i_map.GetId(), i_map.GetDifficultyID(), cellCoord.GetId()); if (cellguids == null) { return; } LoadHelper <Creature>(cellguids.creatures, cellCoord, ref i_creatures, i_map); }
public override void Visit(ICollection <Creature> objs) { CellCoord cellCoord = i_cell.GetCellCoord(); CellObjectGuids cellguids = Global.ObjectMgr.GetCellObjectGuids(i_map.GetId(), (byte)i_map.GetSpawnMode(), cellCoord.GetId()); if (cellguids == null) { return; } LoadHelper <Creature>(cellguids.creatures, cellCoord, ref i_creatures, i_map); }
public override void Visit(IList <GameObject> objs) { CellCoord cellCoord = i_cell.GetCellCoord(); CellObjectGuids cellguids = Global.ObjectMgr.GetCellObjectGuids(i_map.GetId(), (byte)i_map.GetSpawnMode(), cellCoord.GetId()); if (cellguids == null) { return; } LoadHelper <GameObject>(cellguids.gameobjects, cellCoord, ref i_gameObjects, i_map); }
void VisitCorpses(ref List <WorldObject> m) { CellCoord cellCoord = i_cell.GetCellCoord(); // corpses are always added to spawn mode 0 and they are spawned by their instance id CellObjectGuids cell_guids = Cypher.ObjMgr.GetOrCreateCellObjectGuids(i_map.GetId(), 0, cellCoord.GetId()); if (cell_guids == null) { return; } LoadHelper <Corpse>(cell_guids.corpses, cellCoord, ref m, ref i_corpses, i_map); }