mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-13 00:00:54 +01:00
31 lines
781 B
C++
31 lines
781 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
using TiltedPhoques::String;
|
|
using TiltedPhoques::Vector;
|
|
|
|
struct Mods
|
|
{
|
|
struct Entry
|
|
{
|
|
String Filename;
|
|
uint16_t Id;
|
|
bool IsLite;
|
|
|
|
bool operator==(const Entry& acRhs) const noexcept { return Filename == acRhs.Filename && Id == acRhs.Id && IsLite == acRhs.IsLite; }
|
|
|
|
bool operator!=(const Entry& acRhs) const noexcept { return !this->operator==(acRhs); }
|
|
};
|
|
|
|
Vector<Entry> ModList{};
|
|
|
|
Mods() = default;
|
|
~Mods() = default;
|
|
|
|
bool operator==(const Mods& acRhs) const noexcept;
|
|
bool operator!=(const Mods& acRhs) const noexcept;
|
|
|
|
void Serialize(TiltedPhoques::Buffer::Writer& aWriter) const noexcept;
|
|
void Deserialize(TiltedPhoques::Buffer::Reader& aReader) noexcept;
|
|
};
|