mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-13 00:40:53 +01:00
26 lines
760 B
C
26 lines
760 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "Message.h"
|
||
|
|
|
||
|
|
#include <Structs/GameId.h>
|
||
|
|
|
||
|
|
struct ActivateRequest final : ClientMessage
|
||
|
|
{
|
||
|
|
static constexpr ClientOpcode Opcode = kActivateRequest;
|
||
|
|
|
||
|
|
ActivateRequest()
|
||
|
|
: ClientMessage(Opcode)
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
void SerializeRaw(TiltedPhoques::Buffer::Writer& aWriter) const noexcept override;
|
||
|
|
void DeserializeRaw(TiltedPhoques::Buffer::Reader& aReader) noexcept override;
|
||
|
|
|
||
|
|
bool operator==(const ActivateRequest& acRhs) const noexcept { return Id == acRhs.Id && ActivatorId == acRhs.ActivatorId && CellId == acRhs.CellId && PreActivationOpenState == acRhs.PreActivationOpenState && GetOpcode() == acRhs.GetOpcode(); }
|
||
|
|
|
||
|
|
GameId Id;
|
||
|
|
GameId CellId;
|
||
|
|
uint32_t ActivatorId;
|
||
|
|
uint8_t PreActivationOpenState;
|
||
|
|
};
|