F4MP/codigos originales/tiltedcode/Code/encoding/Messages/NotifySetWaypoint.h
2026-01-06 18:53:59 +01:00

25 lines
721 B
C

#pragma once
#include "Message.h"
#include <Structs/Vector3_NetQuantize.h>
#include <Structs/GameId.h>
struct NotifySetWaypoint final : ServerMessage
{
static constexpr ServerOpcode Opcode = kNotifySetWaypoint;
NotifySetWaypoint() : ServerMessage(Opcode)
{
}
void SerializeRaw(TiltedPhoques::Buffer::Writer& aWriter) const noexcept override;
void DeserializeRaw(TiltedPhoques::Buffer::Reader& aReader) noexcept override;
bool operator==(const NotifySetWaypoint& acRhs) const noexcept
{
return GetOpcode() == acRhs.GetOpcode() && Position == acRhs.Position && WorldSpaceFormID == acRhs.WorldSpaceFormID;
}
Vector3_NetQuantize Position;
GameId WorldSpaceFormID;
};