MCPcopy Create free account
hub / github.com/Segs/Segs / storeClientData

Function storeClientData

Projects/CoX/Servers/MapServer/MessageHelpers.cpp:629–659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

627} // end of anonymous namespace
628
629void storeClientData(BitStream &bs,Entity *ent,bool incremental)
630{
631 PUTDEBUG("Before character data");
632 if(!incremental)
633 {
634 //full_update - > receiveCharacterFromServer
635 // initial character update = level/name/class/origin/map_name
636 //m_client->char_entity()->m_char->m_ent=m_client->char_entity();
637 serialize_char_full_update(*ent,bs);
638 }
639 else
640 {
641 const Character &player_char(*ent->m_char);
642 player_char.sendFullStats(bs);
643 }
644 //qCDebug(logPowers) << "Before storePowerInfoUpdate";
645 storePowerInfoUpdate(bs,ent);
646 //qCDebug(logPowers) << "After storePowerInfoUpdate";
647 storeTeamList(bs,ent);
648 storeSuperStats(bs);
649 storeGroupDyn(bs);
650
651 bs.StoreBits(1,ent->m_force_camera_dir);
652 if(ent->m_force_camera_dir)
653 {
654 bs.StoreFloat(ent->m_states.current()->m_camera_pyr.p); // force camera_pitch
655 bs.StoreFloat(ent->m_states.current()->m_camera_pyr.y); // force camera_yaw
656 bs.StoreFloat(ent->m_states.current()->m_camera_pyr.r); // force camera_roll
657 }
658 PUTDEBUG("After character data");
659}
660
661void storeFollowupCommands(BitStream &bs,MapClientSession *m_client)
662{

Callers 1

buildEntityResponseFunction · 0.85

Calls 9

storePowerInfoUpdateFunction · 0.85
storeTeamListFunction · 0.85
storeSuperStatsFunction · 0.85
storeGroupDynFunction · 0.85
sendFullStatsMethod · 0.80
StoreFloatMethod · 0.80
currentMethod · 0.80
StoreBitsMethod · 0.45

Tested by

no test coverage detected