~ruther/NosSmooth

ref: 90aff7c9898496952a8c47c7db30989d180f32f8 NosSmooth/Core/NosSmooth.Packets/Packets/Server/Map/MovePacket.cs -rw-r--r-- 858 bytes
90aff7c9 — František Boháček feat: add checking parameter method for the generator 3 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
34
//
//  MovePacket.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 NosCore.Shared.Enumerations;
using NosSmooth.Packets.Attributes;

namespace NosSmooth.Packets.Packets.Server.Map;

/// <summary>
/// The entity has moved to the given position.
/// </summary>
/// <param name="EntityType"></param>
/// <param name="EntityId"></param>
/// <param name="MapX"></param>
/// <param name="MapY"></param>
/// <param name="Speed"></param>
[PacketHeader("mv", PacketSource.Server)]
[GenerateSerializer]
public record MovePacket
(
    [PacketIndex(0)]
    VisualType EntityType,
    [PacketIndex(1)]
    long EntityId,
    [PacketIndex(2)]
    short MapX,
    [PacketIndex(3)]
    short MapY,
    [PacketIndex(4)]
    byte Speed
) : IPacket;
Do not follow this link