| 627 | } // end of anonymous namespace |
| 628 | |
| 629 | void 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 | |
| 661 | void storeFollowupCommands(BitStream &bs,MapClientSession *m_client) |
| 662 | { |
no test coverage detected