mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-12 23:20:53 +01:00
31 lines
831 B
C
31 lines
831 B
C
#pragma once
|
|
|
|
#include "Message.h"
|
|
#include <Structs/GameId.h>
|
|
|
|
struct RequestQuestUpdate final : ClientMessage
|
|
{
|
|
static constexpr ClientOpcode Opcode = kRequestQuestUpdate;
|
|
|
|
RequestQuestUpdate()
|
|
: ClientMessage(Opcode)
|
|
{
|
|
}
|
|
|
|
void SerializeRaw(TiltedPhoques::Buffer::Writer& aWriter) const noexcept override;
|
|
void DeserializeRaw(TiltedPhoques::Buffer::Reader& aReader) noexcept override;
|
|
|
|
bool operator==(const RequestQuestUpdate& acRhs) const noexcept { return GetOpcode() == acRhs.GetOpcode() && Id == acRhs.Id && Stage == acRhs.Stage && Status == acRhs.Status && ClientQuestType == acRhs.ClientQuestType; }
|
|
|
|
enum StatusCode : uint8_t
|
|
{
|
|
StageUpdate,
|
|
Started,
|
|
Stopped
|
|
};
|
|
|
|
GameId Id;
|
|
uint16_t Stage;
|
|
uint8_t Status;
|
|
uint8_t ClientQuestType;
|
|
};
|