~ruther/NosSmooth

ref: 2da1bd62e5f9400573204d273bb4a39eabcee28f NosSmooth/Packets/NosSmooth.Packets/Client/Mates/PtctlPacket.cs -rw-r--r-- 1.1 KiB
2da1bd62 — NotKappa Add missing fields to 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
28
29
30
31
32
33
//
//  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>
/// <param name="Unknown">Seems to always be euqal to first EntityId in Controls.</param>
/// <param name="Unknown1">Seems to always be 9.</param>
[PacketHeader("ptctl", PacketSource.Server)]
[GenerateSerializer(true)]
public record PtctlPacket
(
    [PacketIndex(0)]
    short MapId,
    [PacketIndex(1)]
    uint? ControlsCount,
    [PacketContextList(2, "ControlsCount", ListSeparator = ' ', InnerSeparator = ' ')]
    IReadOnlyList<PtctlSubPacket> Controls,
    [PacketIndex(3)]
    long Unknown,
    [PacketIndex(4)]
    short Unknown1
) : IPacket;
Do not follow this link