mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-11 20:11:18 +03:00
* Initial commit.
:)
This commit is contained in:
19
source/Network/Packets/PlayerEquipmentPacket.cpp
Normal file
19
source/Network/Packets/PlayerEquipmentPacket.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#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);
|
||||
}
|
||||
Reference in New Issue
Block a user