mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-12 17:10:54 +01:00
25 lines
807 B
C
25 lines
807 B
C
#pragma once
|
|
|
|
#include "Message.h"
|
|
#include <Structs/GameId.h>
|
|
#include <Structs/Vector3_NetQuantize.h>
|
|
|
|
struct NotifyActorTeleport final : ServerMessage
|
|
{
|
|
static constexpr ServerOpcode Opcode = kNotifyActorTeleport;
|
|
|
|
NotifyActorTeleport()
|
|
: ServerMessage(Opcode)
|
|
{
|
|
}
|
|
|
|
void SerializeRaw(TiltedPhoques::Buffer::Writer& aWriter) const noexcept override;
|
|
void DeserializeRaw(TiltedPhoques::Buffer::Reader& aReader) noexcept override;
|
|
|
|
bool operator==(const NotifyActorTeleport& acRhs) const noexcept { return GetOpcode() == acRhs.GetOpcode() && FormId == acRhs.FormId && WorldSpaceId == acRhs.WorldSpaceId && CellId == acRhs.CellId && Position == acRhs.Position; }
|
|
|
|
GameId FormId{};
|
|
GameId WorldSpaceId{};
|
|
GameId CellId{};
|
|
Vector3_NetQuantize Position{};
|
|
};
|