// // 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 System.Collections.Generic; using System.ComponentModel; using NosSmooth.Packets.Attributes; namespace NosSmooth.Packets.Packets.Server.Skills; /// /// Information about skills, sent when changing sp, map etc. /// /// The primary skill id. /// The secondary skill id. (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)] long PrimarySkillId, [PacketIndex(1)] long SecondarySkillId, [PacketListIndex(2, InnerSeparator = '.', ListSeparator = ' ')] IReadOnlyList SkillSubPackets ) : IPacket;