~ruther/NosSmooth

ref: cc1c2439854f6bc008f2d22968f40dfd8be8a7b1 NosSmooth/Packets/NosSmooth.Packets/Server/Character/ScWeaponSubPacket.cs -rw-r--r-- 1.1 KiB
cc1c2439 — František Boháček feat: add pet positions to walk command 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
//  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;

/// <summary>
/// A sub packet of <see cref="ScPacket"/>
/// containing information about character's weapon.
/// </summary>
/// <param name="WeaponUpgrade">The upgrade of the weapon.</param>
/// <param name="MinHit">The minimal hit amount.</param>
/// <param name="MaxHit">The maximal hit amount.</param>
/// <param name="HitRate">The hit rate.</param>
/// <param name="CriticalHitRate">The critical hit rate.</param>
/// <param name="CriticalHitMultiplier">The critical hit multiplier.</param>
[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;
Do not follow this link