mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-12 16:50:54 +01:00
23 lines
665 B
C
23 lines
665 B
C
#pragma once
|
|
|
|
#include "Message.h"
|
|
|
|
using TiltedPhoques::String;
|
|
|
|
struct DialogueRequest final : ClientMessage
|
|
{
|
|
static constexpr ClientOpcode Opcode = kDialogueRequest;
|
|
|
|
DialogueRequest()
|
|
: ClientMessage(Opcode)
|
|
{
|
|
}
|
|
|
|
void SerializeRaw(TiltedPhoques::Buffer::Writer& aWriter) const noexcept override;
|
|
void DeserializeRaw(TiltedPhoques::Buffer::Reader& aReader) noexcept override;
|
|
|
|
bool operator==(const DialogueRequest& acRhs) const noexcept { return GetOpcode() == acRhs.GetOpcode() && ServerId == acRhs.ServerId && SoundFilename == acRhs.SoundFilename; }
|
|
|
|
uint32_t ServerId{};
|
|
TiltedPhoques::String SoundFilename{};
|
|
};
|