~ruther/NosSmooth

ref: 6f8822252833b20c112019b294c7f8b3e3cd4b7a NosSmooth/Core/NosSmooth.Packets/Packets/Server/Groups/PinitSubPacket.cs -rw-r--r-- 1.5 KiB
6f882225 — František Boháček feat: add support for conditional packet attribute 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//
//  PinitSubPacket.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.Groups;

/// <summary>
/// Sub packet of <see cref="PinitSubPacket"/> containing information
/// about one of the group members.
/// </summary>
/// <param name="EntityType">The type of the entity.</param>
/// <param name="EntityId">The id of the entity.</param>
/// <param name="GroupPosition">The position in the group.</param>
/// <param name="Level">The level of the entity.</param>
/// <param name="Name">The name of the entity.</param>
/// <param name="Unknown">Unknown.</param>
/// <param name="VNum">The VNum of the pet for pets.</param>
/// <param name="Race">The race of the entity.</param>
/// <param name="Morph">The morph of the entity.</param>
/// <param name="HeroLevel">The hero level of the entity.</param>
[GenerateSerializer]
[PacketHeader(null, PacketSource.Server)]
public record PinitSubPacket
(
    [PacketIndex(0)]
    VisualType EntityType,
    [PacketIndex(1)]
    long EntityId,
    [PacketIndex(2)]
    int GroupPosition,
    [PacketIndex(3)]
    byte Level,
    [PacketIndex(4)]
    string? Name,
    [PacketIndex(5)]
    int Unknown,
    [PacketIndex(6)]
    long VNum,
    [PacketIndex(7)]
    short Race,
    [PacketIndex(8)]
    short Morph
) : IPacket;
Do not follow this link