//
//  PinitPacket.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.PacketSerializer.Abstractions.Attributes;
namespace NosSmooth.Packets.Server.Groups;
/// 
/// Sent for initialization of pets and groups.
/// 
/// 
/// Contains pet and group information.
/// 
/// The number of sub packets.
/// The members of the group. (including pet and partner, if any)
[GenerateSerializer(true)]
[PacketHeader("pinit", PacketSource.Server)]
public record PinitPacket
(
    [PacketIndex(0)]
    byte SubPacketsCount,
    [PacketListIndex(1, ListSeparator = ' ', InnerSeparator = '|', IsOptional = true)]
    IReadOnlyList? PinitSubPackets
) : IPacket;