mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-12 16:50:54 +01:00
53 lines
1.9 KiB
C
53 lines
1.9 KiB
C
#pragma once
|
|
|
|
#include "Message.h"
|
|
#include <Structs/GameId.h>
|
|
#include <Structs/GridCellCoords.h>
|
|
#include <Structs/ActionEvent.h>
|
|
#include <Structs/Vector3_NetQuantize.h>
|
|
#include <Structs/Rotator2_NetQuantize.h>
|
|
#include <Structs/Tints.h>
|
|
#include <Structs/Factions.h>
|
|
#include <Structs/QuestLog.h>
|
|
#include <Structs/ActorData.h>
|
|
|
|
using TiltedPhoques::String;
|
|
|
|
struct AssignCharacterRequest final : ClientMessage
|
|
{
|
|
static constexpr ClientOpcode Opcode = kAssignCharacterRequest;
|
|
|
|
AssignCharacterRequest()
|
|
: ClientMessage(Opcode)
|
|
{
|
|
}
|
|
|
|
virtual ~AssignCharacterRequest() = default;
|
|
|
|
void SerializeRaw(TiltedPhoques::Buffer::Writer& aWriter) const noexcept override;
|
|
void DeserializeRaw(TiltedPhoques::Buffer::Reader& aReader) noexcept override;
|
|
|
|
bool operator==(const AssignCharacterRequest& acRhs) const noexcept
|
|
{
|
|
return GetOpcode() == acRhs.GetOpcode() && Cookie == acRhs.Cookie && ReferenceId == acRhs.ReferenceId && FormId == acRhs.FormId && CellId == acRhs.CellId && WorldSpaceId == acRhs.WorldSpaceId && Position == acRhs.Position && Rotation == acRhs.Rotation && ChangeFlags == acRhs.ChangeFlags &&
|
|
AppearanceBuffer == acRhs.AppearanceBuffer && FactionsContent == acRhs.FactionsContent && LatestAction == acRhs.LatestAction && FaceTints == acRhs.FaceTints && QuestContent == acRhs.QuestContent && IsDragon == acRhs.IsDragon && IsMount == acRhs.IsMount && IsPlayerSummon == acRhs.IsPlayerSummon;
|
|
}
|
|
|
|
uint32_t Cookie{};
|
|
GameId ReferenceId{};
|
|
GameId FormId{};
|
|
GameId CellId{};
|
|
GameId WorldSpaceId{};
|
|
Vector3_NetQuantize Position{};
|
|
Rotator2_NetQuantize Rotation{};
|
|
uint32_t ChangeFlags{};
|
|
String AppearanceBuffer{};
|
|
Factions FactionsContent{};
|
|
ActionEvent LatestAction{};
|
|
QuestLog QuestContent{};
|
|
Tints FaceTints{};
|
|
bool IsDragon{};
|
|
bool IsMount{};
|
|
bool IsPlayerSummon{};
|
|
ActorData CurrentActorData{};
|
|
};
|