Files
mcpe/source/Network/Packets/PlayerEquipmentPacket.cpp
iProgramInCpp 9642818a88 * Initial commit.
:)
2023-07-30 22:22:02 +03:00

20 lines
405 B
C++

#include "Packet.hpp"
void PlayerEquipmentPacket::handle(const RakNet::RakNetGUID& guid, NetEventCallback* pCallback)
{
pCallback->handle(guid, this);
}
void PlayerEquipmentPacket::write(RakNet::BitStream* bs)
{
bs->Write(PACKET_PLAYER_EQUIPMENT);
bs->Write(m_playerID);
bs->Write(m_itemID);
}
void PlayerEquipmentPacket::read(RakNet::BitStream* bs)
{
bs->Read(m_playerID);
bs->Read(m_itemID);
}