~ruther/NosTale-Anonymizer

ref: 357547f83c1313e1f734cd0c601cc69ce6b93452 NosTale-Anonymizer/src/Anonymizer/Sinks/IPacketDestination.cs -rw-r--r-- 833 bytes
357547f8 — František Boháček feat: add movers for bfe, ct, dm, rc, bf, sayi, sayitemt, sayt, spk, rest, raidfhp, raidfmp, ctl, suctl, ptctl, throw, tp, char_sc, die packets 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
//
//  IPacketDestination.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.Server.Skills;

namespace Anonymizer.Sinks;

/// <summary>
/// An interface for sending packets to an arbitrary destination.
/// </summary>
public interface IPacketDestination
{
    /// <summary>
    /// Write the given packet string into the destination.
    /// </summary>
    /// <param name="packetInfo">The packet info to write.</param>
    /// <param name="ct">The cancellation token used for cancelling the operation.</param>
    /// <returns>A <see cref="Task"/> representing the asynchronous operation.</returns>
    public Task WritePacketAsync(PacketInfo packetInfo, CancellationToken ct = default);
}
Do not follow this link