MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / STATE_Write

Method STATE_Write

ogsr_engine/COMMON_AI/xrServer_Objects_ALife_Monsters.cpp:149–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147CSE_ALifeTraderAbstract::~CSE_ALifeTraderAbstract() {}
148
149void CSE_ALifeTraderAbstract::STATE_Write(NET_Packet& tNetPacket)
150{
151 tNetPacket.w_u32(m_dwMoney);
152
153#ifdef XRGAME_EXPORTS
154 tNetPacket.w_stringZ(m_SpecificCharacter);
155#else
156 shared_str s;
157 tNetPacket.w_stringZ(s);
158#endif
159 tNetPacket.w_u32(m_trader_flags.get());
160 // tNetPacket.w_s32 (m_iCharacterProfile);
161 tNetPacket.w_stringZ(m_sCharacterProfile);
162
163#ifdef XRGAME_EXPORTS
164 tNetPacket.w_s32(m_community_index);
165 tNetPacket.w_s32(m_rank);
166 tNetPacket.w_s32(m_reputation);
167#else
168 tNetPacket.w_s32(NO_COMMUNITY_INDEX);
169 tNetPacket.w_s32(NO_RANK);
170 tNetPacket.w_s32(NO_REPUTATION);
171#endif
172 save_data(m_character_name, tNetPacket);
173}
174
175void CSE_ALifeTraderAbstract::STATE_Read(NET_Packet& tNetPacket, u16 size)
176{

Callers

nothing calls this directly

Calls 13

save_dataFunction · 0.85
w_stringZMethod · 0.80
w_u32Method · 0.45
getMethod · 0.45
w_s32Method · 0.45
w_floatMethod · 0.45
w_u16Method · 0.45
w_u8Method · 0.45
wMethod · 0.45
on_state_writeMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected