// // ScArmorSubPacket.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.Character; /// /// A sub packet for /// containing information about armor. /// /// The upgrade of the armor /// The melee defence of the armor. /// The melee dodge rate of the armor. /// The ranged defence of the armor. /// The ranged dodge rate of the armor. /// The magical defence of the armor. [PacketHeader(null, PacketSource.Server)] [GenerateSerializer(true)] public record ScArmorSubPacket ( [PacketIndex(0)] byte ArmorUpgrade, [PacketIndex(1)] int MeleeDefence, [PacketIndex(2)] int MeleeDefenceDodgeRate, [PacketIndex(3)] int RangeDefence, [PacketIndex(4)] int RangeDefenceDodgeRate, [PacketIndex(5)] int MagicalDefence ) : IPacket;