#pragma once

#include "Message.h"

struct SetTimeCommandRequest final : ClientMessage
{
    static constexpr ClientOpcode Opcode = kSetTimeCommandRequest;

    SetTimeCommandRequest()
        : ClientMessage(Opcode)
    {
    }

    void SerializeRaw(TiltedPhoques::Buffer::Writer& aWriter) const noexcept override;
    void DeserializeRaw(TiltedPhoques::Buffer::Reader& aReader) noexcept override;

    bool operator==(const SetTimeCommandRequest& acRhs) const noexcept { return GetOpcode() == acRhs.GetOpcode() && Hours == acRhs.Hours && Minutes == acRhs.Minutes && PlayerId == acRhs.PlayerId; }

    uint8_t Hours{};
    uint8_t Minutes{};
    uint32_t PlayerId{};
};
