TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
GarrisonPackets.cpp File Reference
#include "GarrisonPackets.h"
+ Include dependency graph for GarrisonPackets.cpp:

Functions

ByteBufferoperator<< (ByteBuffer &data, WorldPackets::Garrison::GarrisonPlotInfo &plotInfo)
 
ByteBufferoperator<< (ByteBuffer &data, WorldPackets::Garrison::GarrisonBuildingInfo const &buildingInfo)
 
ByteBufferoperator<< (ByteBuffer &data, WorldPackets::Garrison::GarrisonFollower const &follower)
 
ByteBufferoperator<< (ByteBuffer &data, WorldPackets::Garrison::GarrisonMission const &mission)
 
ByteBufferoperator<< (ByteBuffer &data, WorldPackets::Garrison::GarrisonMissionAreaBonus const &areaBonus)
 
ByteBufferoperator<< (ByteBuffer &data, WorldPackets::Garrison::GarrisonRemoteBuildingInfo const &building)
 
ByteBufferoperator<< (ByteBuffer &data, WorldPackets::Garrison::GarrisonRemoteSiteInfo const &site)
 
ByteBufferoperator<< (ByteBuffer &data, WorldPackets::Garrison::GarrisonBuildingLandmark &landmark)
 

Function Documentation

ByteBuffer& operator<< ( ByteBuffer data,
WorldPackets::Garrison::GarrisonPlotInfo plotInfo 
)
37 {
38  data << uint32(plotInfo.GarrPlotInstanceID);
39  data << plotInfo.PlotPos.PositionXYZOStream();
40  data << uint32(plotInfo.PlotType);
41 
42  return data;
43 }
Position::PositionXYZOStreamer PositionXYZOStream()
Definition: Position.h:128
uint32 PlotType
Definition: GarrisonPackets.h:65
uint32 GarrPlotInstanceID
Definition: GarrisonPackets.h:63
Position PlotPos
Definition: GarrisonPackets.h:64
uint32_t uint32
Definition: g3dmath.h:168

+ Here is the call graph for this function:

ByteBuffer& operator<< ( ByteBuffer data,
WorldPackets::Garrison::GarrisonBuildingInfo const buildingInfo 
)
46 {
47  data << uint32(buildingInfo.GarrPlotInstanceID);
48  data << uint32(buildingInfo.GarrBuildingID);
49  data << uint32(buildingInfo.TimeBuilt);
50  data << uint32(buildingInfo.CurrentGarSpecID);
51  data << uint32(buildingInfo.TimeSpecCooldown);
52  data.WriteBit(buildingInfo.Active);
53  data.FlushBits();
54 
55  return data;
56 }
void FlushBits()
Definition: ByteBuffer.h:150
bool WriteBit(uint32 bit)
Definition: ByteBuffer.h:170
uint32_t uint32
Definition: g3dmath.h:168

+ Here is the call graph for this function:

ByteBuffer& operator<< ( ByteBuffer data,
WorldPackets::Garrison::GarrisonFollower const follower 
)
59 {
60  data << uint64(follower.DbID);
61  data << uint32(follower.GarrFollowerID);
62  data << uint32(follower.Quality);
63  data << uint32(follower.FollowerLevel);
64  data << uint32(follower.ItemLevelWeapon);
65  data << uint32(follower.ItemLevelArmor);
66  data << uint32(follower.Xp);
67  data << uint32(follower.CurrentBuildingID);
68  data << uint32(follower.CurrentMissionID);
69  data << uint32(follower.AbilityID.size());
70  data << uint32(follower.FollowerStatus);
71  for (GarrAbilityEntry const* ability : follower.AbilityID)
72  data << uint32(ability->ID);
73 
74  data.WriteBits(follower.CustomName.length(), 7);
75  data.FlushBits();
76  data.WriteString(follower.CustomName);
77 
78  return data;
79 }
void FlushBits()
Definition: ByteBuffer.h:150
uint64_t uint64
Definition: g3dmath.h:170
void WriteString(std::string const &str)
Definition: ByteBuffer.h:540
uint32 ID
Definition: DB2Structure.h:429
Definition: DB2Structure.h:427
uint32_t uint32
Definition: g3dmath.h:168
void WriteBits(T value, int32 bits)
Definition: ByteBuffer.h:198

+ Here is the call graph for this function:

ByteBuffer& operator<< ( ByteBuffer data,
WorldPackets::Garrison::GarrisonMission const mission 
)
82 {
83  data << uint64(mission.DbID);
84  data << uint32(mission.MissionRecID);
85  data << uint32(mission.OfferTime);
86  data << uint32(mission.OfferDuration);
87  data << uint32(mission.StartTime);
88  data << uint32(mission.TravelDuration);
89  data << uint32(mission.MissionDuration);
90  data << uint32(mission.MissionState);
91 
92  return data;
93 }
uint64_t uint64
Definition: g3dmath.h:170
uint32_t uint32
Definition: g3dmath.h:168
96 {
97  data << uint32(areaBonus.GarrMssnBonusAbilityID);
98  data << uint32(areaBonus.StartTime);
99 
100  return data;
101 }
uint32_t uint32
Definition: g3dmath.h:168
153 {
154  data << uint32(building.GarrPlotInstanceID);
155  data << uint32(building.GarrBuildingID);
156 
157  return data;
158 }
uint32_t uint32
Definition: g3dmath.h:168
161 {
162  data << uint32(site.GarrSiteLevelID);
163  data << uint32(site.Buildings.size());
164  for (WorldPackets::Garrison::GarrisonRemoteBuildingInfo const& building : site.Buildings)
165  data << building;
166 
167  return data;
168 }
uint32_t uint32
Definition: g3dmath.h:168
243 {
244  data << uint32(landmark.GarrBuildingPlotInstID);
245  data << landmark.Pos.PositionXYZStream();
246 
247  return data;
248 }
Position Pos
Definition: GarrisonPackets.h:259
Position::PositionXYZStreamer PositionXYZStream()
Definition: Position.h:127
uint32 GarrBuildingPlotInstID
Definition: GarrisonPackets.h:258
uint32_t uint32
Definition: g3dmath.h:168

+ Here is the call graph for this function: