F4MP/codigos originales/tiltedcode/Code/encoding/Messages/NotifyHealthChangeBroadcast.h

22 lines
639 B
C
Raw Normal View History

#pragma once
#include "Message.h"
struct NotifyHealthChangeBroadcast final : ServerMessage
{
static constexpr ServerOpcode Opcode = kNotifyHealthChangeBroadcast;
NotifyHealthChangeBroadcast()
: ServerMessage(Opcode)
{
}
void SerializeRaw(TiltedPhoques::Buffer::Writer& aWriter) const noexcept override;
void DeserializeRaw(TiltedPhoques::Buffer::Reader& aReader) noexcept override;
bool operator==(const NotifyHealthChangeBroadcast& acRhs) const noexcept { return Id == acRhs.Id && DeltaHealth == acRhs.DeltaHealth && GetOpcode() == acRhs.GetOpcode(); }
uint32_t Id;
float DeltaHealth;
};