#include "td/protocol/packets/PlayerLeavePacket.h"

namespace td {
namespace protocol {

DataBuffer PlayerLeavePacket::Serialize(bool packetID) const {
	DataBuffer data;

	WritePacketID(data, packetID);
	data << m_PlayerID;
	return data;
}

void PlayerLeavePacket::Deserialize(DataBuffer& data) {
	data >> m_PlayerID;
}


} // namespace protocol
} // namespace td
