F4MP/codigos originales/tiltedcode/Code/encoding/Messages/NotifyFactionsChanges.h

22 lines
633 B
C
Raw Normal View History

#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{};
};