~ruther/NosSmooth

ref: 13b8517062c3ef58fbf9496c2aa4aba5fdfff6db NosSmooth/Packets/NosSmooth.Packets/Client/Battle/UseSkillPacket.cs -rw-r--r-- 821 bytes
13b85170 — Rutherther fix(packets): correctly use cast id instead of vnum in UseSkill packet 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
//
//  UseSkillPacket.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.Packets.Enums;
using NosSmooth.PacketSerializer.Abstractions.Attributes;

namespace NosSmooth.Packets.Client.Battle;

/// <summary>
/// Sent to use regular skill.
/// </summary>
/// <remarks>
/// Contains the position etc. for dashes.
/// </remarks>
[PacketHeader("u_s", PacketSource.Client)]
[GenerateSerializer(true)]
public record UseSkillPacket
(
    [PacketIndex(0)]
    short CastId,
    [PacketIndex(1)]
    EntityType TargetEntityType,
    [PacketIndex(2)]
    long TargetId,
    [PacketIndex(3, IsOptional = true)]
    short? MapX,
    [PacketIndex(4, IsOptional = true)]
    short? MapY
) : IPacket;
Do not follow this link