mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-13 00:20:54 +01:00
22 lines
633 B
C
22 lines
633 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "Message.h"
|
||
|
|
#include <Structs/Factions.h>
|
||
|
|
|
||
|
|
struct NotifyFactionsChanges final : ServerMessage
|
||
|
|
{
|
||
|
|
static constexpr ServerOpcode Opcode = kNotifyFactionsChanges;
|
||
|
|
|
||
|
|
NotifyFactionsChanges()
|
||
|
|
: ServerMessage(Opcode)
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
void SerializeRaw(TiltedPhoques::Buffer::Writer& aWriter) const noexcept override;
|
||
|
|
void DeserializeRaw(TiltedPhoques::Buffer::Reader& aReader) noexcept override;
|
||
|
|
|
||
|
|
bool operator==(const NotifyFactionsChanges& acRhs) const noexcept { return Changes == acRhs.Changes && GetOpcode() == acRhs.GetOpcode(); }
|
||
|
|
|
||
|
|
TiltedPhoques::Map<uint32_t, Factions> Changes{};
|
||
|
|
};
|