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

namespace td {
namespace protocol {

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

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

void UpdateExpPacket::Deserialize(DataBuffer& data) {
	data >> m_NewAmount;
}

} // namespace protocol
} // namespace td
