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

24 lines
722 B
C
Raw Normal View History

#pragma once
#include "Message.h"
#include "Structs/CachedString.h"
struct NotifyScriptAnimation final : ServerMessage
{
static constexpr ServerOpcode Opcode = kNotifyScriptAnimation;
NotifyScriptAnimation()
: ServerMessage(Opcode)
{
}
void SerializeRaw(TiltedPhoques::Buffer::Writer& aWriter) const noexcept override;
void DeserializeRaw(TiltedPhoques::Buffer::Reader& aReader) noexcept override;
bool operator==(const NotifyScriptAnimation& acRhs) const noexcept { return FormID == acRhs.FormID && Animation == acRhs.Animation && EventName == acRhs.EventName && GetOpcode() == acRhs.GetOpcode(); }
uint32_t FormID;
CachedString Animation;
CachedString EventName;
};