//
// 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 System.Collections.Generic;
using NosSmooth.Packets.Attributes;
namespace NosSmooth.Packets.Packets.Server.Groups;
///
/// Sent for initialization of pets and groups.
///
///
/// Contains pet and group information.
///
/// The size of the group.
/// The members of the group. (including pet and partner, if any)
[GenerateSerializer]
[PacketHeader("pinit", PacketSource.Server)]
public record PinitPacket
(
[PacketIndex(0)] int GroupSize,
[PacketListIndex(1, ListSeparator = ' ', InnerSeparator = '|')]
IReadOnlyList PinitSubPackets
) : IPacket;