mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-12 23:20:53 +01:00
30 lines
744 B
C++
30 lines
744 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <Structs/GameId.h>
|
|
|
|
using TiltedPhoques::Vector;
|
|
|
|
struct QuestLog
|
|
{
|
|
struct Entry
|
|
{
|
|
GameId Id;
|
|
uint16_t Stage;
|
|
|
|
bool operator==(const Entry& acRhs) const noexcept { return Id == acRhs.Id && Stage == acRhs.Stage; }
|
|
|
|
bool operator!=(const Entry& acRhs) const noexcept { return !this->operator==(acRhs); }
|
|
};
|
|
|
|
Vector<Entry> Entries{};
|
|
|
|
QuestLog() = default;
|
|
~QuestLog() = default;
|
|
|
|
bool operator==(const QuestLog& acRhs) const noexcept;
|
|
bool operator!=(const QuestLog& acRhs) const noexcept;
|
|
|
|
void Serialize(TiltedPhoques::Buffer::Writer& aWriter) const noexcept;
|
|
void Deserialize(TiltedPhoques::Buffer::Reader& aReader) noexcept;
|
|
};
|