mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-13 00:00:54 +01:00
26 lines
721 B
C
26 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;
|
||
|
|
};
|