//
// MsgiPacket.cs
//
// Copyright (c) František Boháček. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using NosSmooth.Packets.Enums;
using NosSmooth.Packets.Enums.Chat;
using NosSmooth.PacketSerializer.Abstractions.Attributes;
namespace NosSmooth.Packets.Server.Chat;
///
/// A constant i18n message received.
///
///
/// Same as .
///
/// The type of the message.
/// The message.
/// The arguments of the message constant.
[PacketHeader("msgi", PacketSource.Server)]
[GenerateSerializer(true)]
public record MsgiPacket
(
[PacketIndex(0)]
MessageType MessageType,
[PacketIndex(1)]
Game18NConstString MessageConst,
[PacketListIndex(2, ListSeparator = ' ')]
IReadOnlyList Arguments
) : IPacket;