~ruther/NosSmooth

ref: 0c354626c569c8d1fdfe97d6b5706db22168fb47 NosSmooth/Packets/NosSmooth.Packets/Server/Raids/RdlstSubPacket.cs -rw-r--r-- 1.4 KiB
0c354626 — Rutherther feat(packets): add raid packets 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
34
35
36
37
38
39
40
41
42
43
44
45
//
//  RdlstSubPacket.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.Packets.Enums.Players;
using NosSmooth.PacketSerializer.Abstractions.Attributes;
using NosSmooth.PacketSerializer.Abstractions.Common;

namespace NosSmooth.Packets.Server.Raids;

/// <summary>
/// A sub packet of <see cref="RdlstPacket"/>.
/// Information about a member of the raid.
/// </summary>
/// <param name="Level">The level of the player.</param>
/// <param name="MorphVNum">The morph vnum of the player.</param>
/// <param name="Class">The class of the player.</param>
/// <param name="Deaths">The current number of deaths in the raid.</param>
/// <param name="Name">The name of the player.</param>
/// <param name="Sex">The sex of the player.</param>
/// <param name="Id">The id of the player entity.</param>
/// <param name="HeroLevel">The hero level of the player.</param>
[PacketHeader(null, PacketSource.Server)]
[GenerateSerializer(true)]
public record RdlstSubPacket
(
    [PacketIndex(0)]
    byte Level,
    [PacketIndex(1)]
    int? MorphVNum,
    [PacketIndex(2)]
    PlayerClass Class,
    [PacketIndex(3)]
    byte Deaths,
    [PacketIndex(4)]
    NameString Name,
    [PacketIndex(5)]
    SexType Sex,
    [PacketIndex(6)]
    long Id,
    [PacketIndex(7)]
    short? HeroLevel
);
Do not follow this link