#pragma once

#include "td/protocol/Protocol.h"

namespace td {
namespace protocol {

class UpdateExpPacket : public Packet {
private:
	std::uint32_t m_NewAmount;
public:
	UpdateExpPacket() {}
	UpdateExpPacket(std::uint32_t newAmount) : m_NewAmount(newAmount) {}
	virtual ~UpdateExpPacket() {}

	std::uint32_t GetExp() const { return m_NewAmount; }

	virtual DataBuffer Serialize(bool packetID = true) const;
	virtual void Deserialize(DataBuffer& data);
	virtual void Dispatch(PacketHandler* handler) const;

	virtual PacketType GetType() const { return PacketType::UpdateEXP; }
};

} // namespace protocol
} // namespace td
