mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-12 23:20:53 +01:00
27 lines
771 B
C
27 lines
771 B
C
#pragma once
|
|
|
|
#include "Message.h"
|
|
#include <Structs/Vector3_NetQuantize.h>
|
|
#include <Structs/GameId.h>
|
|
|
|
struct RequestSetWaypoint final : ClientMessage
|
|
{
|
|
static constexpr ClientOpcode Opcode = kRequestSetWaypoint;
|
|
|
|
RequestSetWaypoint() : ClientMessage(Opcode)
|
|
{
|
|
}
|
|
|
|
virtual ~RequestSetWaypoint() = default;
|
|
|
|
void SerializeRaw(TiltedPhoques::Buffer::Writer& aWriter) const noexcept override;
|
|
void DeserializeRaw(TiltedPhoques::Buffer::Reader& aReader) noexcept override;
|
|
|
|
bool operator==(const RequestSetWaypoint& acRhs) const noexcept
|
|
{
|
|
return GetOpcode() == acRhs.GetOpcode() && Position == acRhs.Position && WorldSpaceFormID == acRhs.WorldSpaceFormID;
|
|
}
|
|
|
|
Vector3_NetQuantize Position;
|
|
GameId WorldSpaceFormID;
|
|
};
|