mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-12 17:10:54 +01:00
33 lines
1.1 KiB
C
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{};
|
|
};
|