152 stmt->setUInt32(1, building);
156 for (
auto const& p :
_plots)
158 Plot
const& plot = p.second;
159 if (plot.BuildingInfo.PacketInfo)
163 stmt->setUInt32(1, plot.BuildingInfo.PacketInfo->GarrPlotInstanceID);
164 stmt->setUInt32(2, plot.BuildingInfo.PacketInfo->GarrBuildingID);
165 stmt->setUInt64(3, plot.BuildingInfo.PacketInfo->TimeBuilt);
166 stmt->setBool(4, plot.BuildingInfo.PacketInfo->Active);
173 Follower
const& follower = p.second;
176 stmt->
setUInt64(index++, follower.PacketInfo.DbID);
177 stmt->setUInt64(index++,
_owner->GetGUID().GetCounter());
178 stmt->setUInt32(index++, follower.PacketInfo.GarrFollowerID);
179 stmt->setUInt32(index++, follower.PacketInfo.Quality);
180 stmt->setUInt32(index++, follower.PacketInfo.FollowerLevel);
181 stmt->setUInt32(index++, follower.PacketInfo.ItemLevelWeapon);
182 stmt->setUInt32(index++, follower.PacketInfo.ItemLevelArmor);
183 stmt->setUInt32(index++, follower.PacketInfo.Xp);
184 stmt->setUInt32(index++, follower.PacketInfo.CurrentBuildingID);
185 stmt->setUInt32(index++, follower.PacketInfo.CurrentMissionID);
186 stmt->setUInt32(index++, follower.PacketInfo.FollowerStatus);
193 stmt->
setUInt64(0, follower.PacketInfo.DbID);
194 stmt->setUInt32(1, ability->
ID);
195 stmt->setUInt8(2, slot++);
Definition: CharacterDatabase.h:592
GarrSiteLevelEntry const * _siteLevel
Definition: Garrison.h:160
std::unordered_set< uint32 > _knownBuildings
Definition: Garrison.h:164
Definition: PreparedStatement.h:74
Player * _owner
Definition: Garrison.h:159
Definition: CharacterDatabase.h:582
std::unordered_map< uint32, Plot > _plots
Definition: Garrison.h:163
uint32_t uint32
Definition: Define.h:150
PreparedStatement * GetPreparedStatement(PreparedStatementIndex index)
Definition: DatabaseWorkerPool.h:263
uint32 ID
Definition: DB2Structure.h:429
std::unordered_map< uint64, Follower > _followers
Definition: Garrison.h:165
Definition: DB2Structure.h:427
uint32 ID
Definition: DB2Structure.h:551
Definition: CharacterDatabase.h:586
void setUInt64(const uint8 index, const uint64 value)
Definition: PreparedStatement.cpp:124
uint32 _followerActivationsRemainingToday
Definition: Garrison.h:161
uint8_t uint8
Definition: Define.h:152
CharacterDatabaseWorkerPool CharacterDatabase
Accessor to the character database.
Definition: DatabaseEnv.cpp:21
Definition: CharacterDatabase.h:589
static void DeleteFromDB(ObjectGuid::LowType ownerGuid, SQLTransaction trans)
Definition: Garrison.cpp:201
Definition: CharacterDatabase.h:595