mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-13 00:40:53 +01:00
32 lines
827 B
C
32 lines
827 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "Message.h"
|
||
|
|
#include <Structs/GameId.h>
|
||
|
|
|
||
|
|
struct NotifyQuestUpdate final : ServerMessage
|
||
|
|
{
|
||
|
|
static constexpr ServerOpcode Opcode = kNotifyQuestUpdate;
|
||
|
|
|
||
|
|
NotifyQuestUpdate()
|
||
|
|
: ServerMessage(Opcode)
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
void SerializeRaw(TiltedPhoques::Buffer::Writer& aWriter) const noexcept override;
|
||
|
|
void DeserializeRaw(TiltedPhoques::Buffer::Reader& aReader) noexcept override;
|
||
|
|
|
||
|
|
bool operator==(const NotifyQuestUpdate& 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;
|
||
|
|
};
|