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

namespace td {
namespace protocol {

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

	WritePacketID(data, packetID);
	data << m_CastleLife << m_Team;
	return data;
}

void UpdateCastleLifePacket::Deserialize(DataBuffer& data) {
	data >> m_CastleLife >> m_Team;
}

} // namespace protocol
} // namespace td
