~ruther/NosSmooth

ref: e9eb3013a8f447f871ed070f5fb72619da75cc60 NosSmooth/Packets/NosSmooth.Packets/Client/Mates/PtctlPacket.cs -rw-r--r-- 911 bytes
e9eb3013 — František Boháček fix(packets): make correct context list count property in PtctlPacket 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
//
//  PtctlPacket.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.Client.Mates;

/// <summary>
/// A mate move packet, moving multiple mates at a time.
/// </summary>
/// <param name="MapId">The current map id.</param>
/// <param name="ControlsCount">The count of controls in array.</param>
/// <param name="Controls">The array containing the mates to move and positions to move them to.</param>
[PacketHeader("ptctl", PacketSource.Server)]
[GenerateSerializer(true)]
public record PtctlPacket
(
    [PacketIndex(0)]
    short MapId,
    [PacketIndex(1)]
    uint? ControlsCount,
    [PacketContextList(2, "ControlsCount", ListSeparator = ' ')]
    IReadOnlyList<PtctlSubPacket> Controls
) : IPacket;
Do not follow this link