~ruther/NosSmooth

ref: 6334c0f5e711b3d9567687ae3ebf72fa41691b43 NosSmooth/Packets/NosSmooth.Packets/Server/UI/DelayPacket.cs -rw-r--r-- 949 bytes
6334c0f5 — František Boháček tests: add ptctl deserialization test 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
//
//  DelayPacket.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.UI;

/// <summary>
/// The client should wait before doing the given operation,
/// dancing in the process. The character may not move, sit, etc.
/// In case the character moves, sits or does something else,
/// the operation will be cancelled.
/// </summary>
/// <param name="Delay">The time to wait.</param>
/// <param name="Type">The type of the delay packet.</param>
/// <param name="Argument">The argument to send after waited.</param>
[PacketHeader("delay", PacketSource.Server)]
[GenerateSerializer(true)]
public record DelayPacket
(
    [PacketIndex(0)]
    int Delay,
    [PacketIndex(1)]
    int Type,
    [PacketIndex(2)]
    string Argument
) : IPacket;
Do not follow this link