//
// ScWeaponSubPacket.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 of
/// containing information about character's weapon.
///
/// The upgrade of the weapon.
/// The minimal hit amount.
/// The maximal hit amount.
/// The hit rate.
/// The critical hit rate.
/// The critical hit multiplier.
[PacketHeader(null, PacketSource.Server)]
[GenerateSerializer(true)]
public record ScWeaponSubPacket
(
[PacketIndex(0)]
byte WeaponUpgrade,
[PacketIndex(1)]
int MinHit,
[PacketIndex(2)]
int MaxHit,
[PacketIndex(3)]
int HitRate,
[PacketIndex(4)]
int CriticalHitRate,
[PacketIndex(5)]
int CriticalHitMultiplier
) : IPacket;