//
// SkiPacket.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.Skills;
///
/// Information about skills, sent when changing sp, map etc.
///
/// Unknown TODO.
/// The primary skill vnum.
/// The secondary skill vnum. (may be same as primary in some cases, like for special cards).
/// The rest of the skills.
[PacketHeader("ski", PacketSource.Server)]
[GenerateSerializer(true)]
public record SkiPacket
(
[PacketIndex(0)]
int? Unknown,
[PacketIndex(1)]
int PrimarySkillVNum,
[PacketIndex(2)]
int SecondarySkillVNum,
[PacketListIndex(3, InnerSeparator = '|', ListSeparator = ' ')]
IReadOnlyList SkillSubPackets
) : IPacket;