~ruther/NosSmooth

06ebc0e66b38dce62ffdfc21531536c3263530e9 — Rutherther 3 years ago 23e033c
feat(packets): add cancel packet
1 files changed, 27 insertions(+), 0 deletions(-)

A Packets/NosSmooth.Packets/Server/Skills/CancelPacket.cs
A Packets/NosSmooth.Packets/Server/Skills/CancelPacket.cs => Packets/NosSmooth.Packets/Server/Skills/CancelPacket.cs +27 -0
@@ 0,0 1,27 @@
//
//  CancelPacket.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.Skills;

/// <summary>
/// Packet that cancels an operation like a skill.
/// </summary>
/// <param name="Type"></param>
/// <param name="TargetId"></param>
/// <param name="Unknown"></param>
[PacketHeader("cancel", PacketSource.Server)]
[GenerateSerializer(true)]
public record CancelPacket
(
    [PacketIndex(0)]
    short Type,
    [PacketIndex(1)]
    long TargetId,
    [PacketIndex(2)]
    long Unknown = -1
) : IPacket;
\ No newline at end of file

Do not follow this link