MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / exportToPacketForUpdate

Method exportToPacketForUpdate

source/game/SeatData.cpp:101–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101void SeatData::exportToPacketForUpdate(ODPacket& os) const
102{
103 os << mGold;
104 os << mGoldMax;
105 os << mMana;
106 os << mManaDelta;
107 os << mNumClaimedTiles;
108 os << mNumCreaturesFighters;
109 os << mNumCreaturesFightersMax;
110 os << mNumCreaturesWorkers;
111 os << mHasGoalsChanged;
112 uint32_t nb = mNbRooms.size();
113 os << nb;
114 for(uint32_t nbRoom : mNbRooms)
115 os << nbRoom;
116
117 os << mCurrentSkillType;
118 os << mCurrentSkillProgress;
119
120}
121
122void SeatData::exportToPacket(ODPacket& os) const
123{

Callers 13

initSeatMethod · 0.45
startNewTurnMethod · 0.45
buildTrapDefaultMethod · 0.45
sellTrapTilesMethod · 0.45
sellTrapTilesEditorMethod · 0.45
buildRoomDefaultMethod · 0.45
sellRoomTilesMethod · 0.45
sellRoomTilesEditorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected