F4MP/tiltedcode/Code/encoding/Messages/NotifyAddTarget.h
Jous99 37b16f1547 code upload
codigo original de f4mp y tilted para referencias
2026-01-06 18:45:00 +01:00

33 lines
1.1 KiB
C

#pragma once
#include "Message.h"
#include <Structs/GameId.h>
struct NotifyAddTarget final : ServerMessage
{
static constexpr ServerOpcode Opcode = kNotifyAddTarget;
NotifyAddTarget()
: ServerMessage(Opcode)
{
}
void SerializeRaw(TiltedPhoques::Buffer::Writer& aWriter) const noexcept override;
void DeserializeRaw(TiltedPhoques::Buffer::Reader& aReader) noexcept override;
bool operator==(const NotifyAddTarget& acRhs) const noexcept
{
return GetOpcode() == acRhs.GetOpcode() && TargetId == acRhs.TargetId && CasterId == acRhs.CasterId && SpellId == acRhs.SpellId &&
EffectId == acRhs.EffectId && Magnitude == acRhs.Magnitude && IsDualCasting == acRhs.IsDualCasting &&
ApplyHealPerkBonus == acRhs.ApplyHealPerkBonus && ApplyStaminaPerkBonus == acRhs.ApplyStaminaPerkBonus;
}
uint32_t TargetId{};
uint32_t CasterId{};
GameId SpellId{};
GameId EffectId{};
float Magnitude{};
bool IsDualCasting{};
bool ApplyHealPerkBonus{};
bool ApplyStaminaPerkBonus{};
};