~ruther/NosSmooth

ref: ee5e9661e7e771ce6947630093a4eb4a4c16c876 NosSmooth/Packets/NosSmooth.Packets/Server/Players/CInfoPacket.cs -rw-r--r-- 2.6 KiB
ee5e9661 — František Boháček feat: add effects to living entities 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
//
//  CInfoPacket.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.Attributes;
using NosSmooth.Packets.Enums;
using NosSmooth.Packets.Enums.Players;

namespace NosSmooth.Packets.Packets.Server.Players;

/// <summary>
/// Information about the playing character.
/// </summary>
/// <remarks>
/// Sent on login and when changing map.
/// </remarks>
/// <param name="Name">The name of the character.</param>
/// <param name="Unknown">Unknown TODO</param>
/// <param name="GroupId">The id of the group the player is in, if any.</param>
/// <param name="FamilyId">The id of the family the player is in, if any.</param>
/// <param name="FamilyName">The name of the family the player is in, if any.</param>
/// <param name="CharacterId">The id of the character.</param>
/// <param name="Authority">The authority of the character.</param>
/// <param name="Sex">The sex of the character.</param>
/// <param name="HairStyle">The hair style of the character.</param>
/// <param name="HairColor">The hair color of the character.</param>
/// <param name="Class">The class of the character.</param>
/// <param name="Icon">Unknown TODO</param>
/// <param name="Compliment">Unknown TODO</param>
/// <param name="MorphVNum">The vnum of the morph (used for special cards, vehicles and such).</param>
/// <param name="IsInvisible">Whether the character is invisible.</param>
/// <param name="FamilyLevel">The level of the family, if any.</param>
/// <param name="MorphUpgrade">The upgrade of the morph (wings)</param>
/// <param name="ArenaWinner">Whether the character is an arena winner.</param>
[PacketHeader("c_info", PacketSource.Server)]
[GenerateSerializer(true)]
public record CInfoPacket
(
    [PacketIndex(0)]
    string Name,
    [PacketIndex(1)]
    string? Unknown,
    [PacketIndex(2)]
    short? GroupId,
    [PacketIndex(3)]
    string? FamilyId,
    [PacketIndex(4)]
    string? FamilyName,
    [PacketIndex(5)]
    long CharacterId,
    [PacketIndex(6)]
    AuthorityType Authority,
    [PacketIndex(7)]
    SexType Sex,
    [PacketIndex(8)]
    HairStyle HairStyle,
    [PacketIndex(9)]
    HairColor HairColor,
    [PacketIndex(10)]
    PlayerClass Class,
    [PacketIndex(11)]
    byte Icon,
    [PacketIndex(12)]
    short Compliment,
    [PacketIndex(13)]
    short MorphVNum,
    [PacketIndex(14)]
    bool IsInvisible,
    [PacketIndex(15)]
    byte? FamilyLevel,
    [PacketIndex(16)]
    byte MorphUpgrade,
    [PacketIndex(17)]
    bool ArenaWinner
) : IPacket;
Do not follow this link