![]() |
TrinityCore
|
#include <UpdateData.h>
Public Member Functions | |
| UpdateData () | |
| UpdateData (UpdateData &&right) | |
| void | AddOutOfRangeGUID (GuidSet &guids) |
| void | AddOutOfRangeGUID (ObjectGuid guid) |
| void | AddUpdateBlock () |
| ByteBuffer & | GetBuffer () |
| bool | BuildPacket (WorldPacket *packet) |
| bool | HasData () const |
| void | Clear () |
| GuidSet const & | GetOutOfRangeGUIDs () const |
Protected Member Functions | |
| void | Compress (void *dst, uint32 *dst_size, void *src, int src_size) |
| UpdateData (UpdateData const &right)=delete | |
| UpdateData & | operator= (UpdateData const &right)=delete |
Protected Attributes | |
| uint32 | m_blockCount |
| GuidSet | m_outOfRangeGUIDs |
| ByteBuffer | m_data |
Definition at line 54 of file UpdateData.h.
| UpdateData::UpdateData | ( | ) |
Definition at line 26 of file UpdateData.cpp.
|
inline |
Definition at line 58 of file UpdateData.h.
|
protecteddelete |
| void UpdateData::AddOutOfRangeGUID | ( | GuidSet & | guids | ) |
Definition at line 28 of file UpdateData.cpp.
References m_outOfRangeGUIDs.
Referenced by Object::BuildOutOfRangeUpdateBlock(), and Trinity::VisibleNotifier::SendToSelf().
| void UpdateData::AddOutOfRangeGUID | ( | ObjectGuid | guid | ) |
Definition at line 33 of file UpdateData.cpp.
References m_outOfRangeGUIDs.
|
inline |
Definition at line 66 of file UpdateData.h.
References m_blockCount.
Referenced by Object::BuildCreateUpdateBlockForPlayer(), Object::BuildMovementUpdateBlock(), and Object::BuildValuesUpdateBlockForPlayer().
| bool UpdateData::BuildPacket | ( | WorldPacket * | packet | ) |
Definition at line 94 of file UpdateData.cpp.
References ByteBuffer::append(), ASSERT, Compress(), ByteBuffer::contents(), ByteBuffer::empty(), m_blockCount, m_data, m_outOfRangeGUIDs, ByteBuffer::put(), ByteBuffer::resize(), WorldPacket::SetOpcode(), SMSG_COMPRESSED_UPDATE_OBJECT, SMSG_UPDATE_OBJECT, UPDATETYPE_OUT_OF_RANGE_OBJECTS, and ByteBuffer::wpos().
Referenced by Group::AddMember(), Map::AddToMap(), Map::RemoveFromMap(), Map::SendInitSelf(), Map::SendInitTransports(), Map::SendRemoveTransports(), Trinity::VisibleNotifier::SendToSelf(), BattlegroundSA::SendTransportInit(), BattlegroundSA::SendTransportsRemove(), Object::SendUpdateToPlayer(), Unit::SetOwnerGUID(), BattlegroundSA::StartShips(), GameObject::Update(), Player::UpdateTriggerVisibility(), and Player::UpdateVisibleGameobjectsOrSpellClicks().
| void UpdateData::Clear | ( | ) |
Definition at line 137 of file UpdateData.cpp.
References ByteBuffer::clear(), m_blockCount, m_data, and m_outOfRangeGUIDs.
Referenced by Map::SendInitSelf().
|
protected |
Definition at line 38 of file UpdateData.cpp.
References CONFIG_COMPRESSION, sWorld, and TC_LOG_ERROR.
Referenced by BuildPacket().
|
inline |
Definition at line 67 of file UpdateData.h.
References m_data.
Referenced by Object::BuildCreateUpdateBlockForPlayer(), Object::BuildMovementUpdateBlock(), and Object::BuildValuesUpdateBlockForPlayer().
|
inline |
Definition at line 72 of file UpdateData.h.
References m_outOfRangeGUIDs.
|
inline |
Definition at line 69 of file UpdateData.h.
References m_blockCount, and m_outOfRangeGUIDs.
Referenced by Group::AddMember(), Map::SendInitTransports(), Map::SendRemoveTransports(), Trinity::VisibleNotifier::SendToSelf(), and Player::UpdateTriggerVisibility().
|
protecteddelete |
|
protected |
Definition at line 75 of file UpdateData.h.
Referenced by AddUpdateBlock(), BuildPacket(), Clear(), and HasData().
|
protected |
Definition at line 77 of file UpdateData.h.
Referenced by BuildPacket(), Clear(), and GetBuffer().
|
protected |
Definition at line 76 of file UpdateData.h.
Referenced by AddOutOfRangeGUID(), AddOutOfRangeGUID(), BuildPacket(), Clear(), GetOutOfRangeGUIDs(), and HasData().