708 if (!
sObjectMgr->GetGameObjectTemplate(entry))
710 TC_LOG_ERROR(
"garrison",
"Garrison attempted to spawn gameobject whose template doesn't exist (%u)", entry);
727 Position const& pos2 = finalizeInfo->FactionInfo[faction].Pos;
736 if (
uint16 animKit = finalizeInfo->FactionInfo[faction].AnimKitId)
751 if (
Creature* spawn = BuildingSpawnHelper<Creature, &Creature::SetHomePosition>(building, spawnId, map))
755 if (
GameObject* spawn = BuildingSpawnHelper<GameObject, &GameObject::RelocateStationaryPosition>(building, spawnId, map))
uint8 GetSpawnMode() const
Definition: Map.h:369
struct GameObjectTemplate::@221::@261 garrisonBuilding
DB2Storage< GarrBuildingEntry > sGarrBuildingStore("GarrBuilding.db2", GarrBuildingFormat, HOTFIX_SEL_GARR_BUILDING)
Definition: DB2Structure.h:439
DB2Storage< GarrPlotInstanceEntry > sGarrPlotInstanceStore("GarrPlotInstance.db2", GarrPlotInstanceFormat, HOTFIX_SEL_GARR_PLOT_INSTANCE)
void SetAnimKitId(uint16 animKitId, bool oneshot)
Definition: GameObject.cpp:2438
Definition: SharedDefines.h:2103
Definition: Creature.h:467
void SetRespawnTime(int32 respawn)
Definition: GameObject.h:945
WorldPackets::Garrison::GarrisonPlotInfo PacketInfo
Definition: Garrison.h:102
uint64 LowType
Definition: ObjectGuid.h:199
uint32 GarrPlotID
Definition: DB2Structure.h:545
#define sObjectMgr
Definition: ObjectMgr.h:1567
uint32 HordeConstructionGameObjectID
Definition: DB2Structure.h:532
Building BuildingInfo
Definition: Garrison.h:105
Definition: DB2Structure.h:522
uint32 HordeGameObjectID
Definition: DB2Structure.h:442
uint32 GarrPlotInstanceID
Definition: GarrisonPackets.h:63
float GetOrientation() const
Definition: Position.h:107
Position PlotPos
Definition: GarrisonPackets.h:64
uint32 EmptyGameObjectId
Definition: Garrison.h:103
uint32 AllianceGameObjectID
Definition: DB2Structure.h:443
float GetPositionY() const
Definition: Position.h:105
bool AddToMap(T *)
Definition: Map.cpp:566
float GetPositionZ() const
Definition: Position.h:106
uint32_t uint32
Definition: Define.h:150
#define sGarrisonMgr
Definition: GarrisonMgr.h:77
GameObjectTemplate const * GetGOInfo() const
Definition: GameObject.h:894
uint16_t uint16
Definition: Define.h:151
ObjectGuid Guid
Definition: Garrison.h:90
Definition: GameObject.h:880
DB2Storage< GarrPlotEntry > sGarrPlotStore("GarrPlot.db2", GarrPlotFormat, HOTFIX_SEL_GARR_PLOT)
struct GameObjectTemplate::@221::@233 goober
Definition: GameObject.h:823
bool CanActivate() const
Definition: Garrison.cpp:817
ObjectGuid const & GetGUID() const
Definition: Object.h:105
Definition: DB2Structure.h:542
std::unordered_set< ObjectGuid > Spawns
Definition: Garrison.h:91
GameobjectTypes GetGoType() const
Definition: GameObject.h:964
Optional< WorldPackets::Garrison::GarrisonBuildingInfo > PacketInfo
Definition: Garrison.h:92
bool Create(ObjectGuid::LowType guidlow, uint32 name_id, Map *map, uint32 phaseMask, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint32 animprogress, GOState go_state, uint32 artKit=0)
Definition: GameObject.cpp:173
void SetSpellId(uint32 id)
Definition: GameObject.h:928
Definition: Position.h:27
#define TC_LOG_ERROR(filterType__,...)
Definition: Log.h:207
Definition: Garrison.h:26
ObjectGuid::LowType GenerateLowGuid()
Definition: Map.h:561
float GetPositionX() const
Definition: Position.h:104
uint32 AllianceConstructionGameObjectID
Definition: DB2Structure.h:531
Definition: GarrisonMgr.h:25