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

namespace td {
namespace protocol {


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

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

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

} // namespace protocol
} // namespace td
