~ruther/NosSmooth

ref: 28287bbe09259135da47a1704a4371e59c4704f2 NosSmooth/Core/NosSmooth.Packets/Packets/Server/Entities/InPlayerSubPacket.cs -rw-r--r-- 2.1 KiB
28287bbe — František Boháček fix: allow converting empty lists 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
78
79
80
81
82
83
84
//
//  InPlayerSubPacket.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 System.Collections.Generic;
using NosSmooth.Packets.Attributes;
using NosSmooth.Packets.Enums;
using NosSmooth.Packets.Enums.Players;
using NosSmooth.Packets.Packets.Server.Players;
using NosSmooth.Packets.Packets.Server.Weapons;

namespace NosSmooth.Packets.Packets.Server.Entities;

[PacketHeader(null, PacketSource.Server)]
[GenerateSerializer]
public record InPlayerSubPacket
(
    [PacketIndex(0)]
    AuthorityType Authority,
    [PacketIndex(1)]
    SexType Sex,
    [PacketIndex(2)]
    HairStyle HairStyle,
    [PacketIndex(3)]
    HairColor HairColor,
    [PacketIndex(4)]
    PlayerClass Class,
    [PacketIndex(5, InnerSeparator = '.')]
    InEquipmentSubPacket Equipment,
    [PacketIndex(6)]
    short HpPercentage,
    [PacketIndex(7)]
    short MpPercentage,
    [PacketIndex(8)]
    bool IsSitting,
    [PacketIndex(9)]
    long? GroupId,
    [PacketIndex(10)]
    short Fairy,
    [PacketIndex(11)]
    Element FairyElement,
    [PacketIndex(12)]
    byte Unknown,
    [PacketIndex(13)]
    long Morph,
    [PacketIndex(14)]
    byte Unknown2,
    [PacketIndex(15)]
    byte Unknown3,
    [PacketIndex(16)]
    UpgradeRareSubPacket WeaponUpgradeRareSubPacket,
    [PacketIndex(17)]
    UpgradeRareSubPacket ArmorUpgradeRareSubPacket,
    [PacketIndex(18)]
    FamilySubPacket FamilySubPacket,
    [PacketIndex(19)]
    string ReputationIcon,
    [PacketIndex(20)]
    bool IsInvisible,
    [PacketIndex(21)]
    byte MorphUpgrade,
    [PacketIndex(22)]
    FactionType Faction,
    [PacketIndex(23)]
    byte MorphUpgrade2,
    [PacketIndex(24)]
    byte Level,
    [PacketIndex(25)]
    byte FamilyLevel,
    [PacketListIndex(26, ListSeparator = '|')]
    IReadOnlyList<bool> FamilyIcons,
    [PacketIndex(27)]
    bool ArenaWinner,
    [PacketIndex(28)]
    short Compliment,
    [PacketIndex(29)]
    byte Size,
    [PacketIndex(30)]
    byte HeroLevel,
    [PacketIndex(31)]
    short Title
) : IPacket;
Do not follow this link