~ruther/NosSmooth

ref: 5b49b8a66e8e72e0460177bf484cb5cef73081b3 NosSmooth/Packets/NosSmooth.Packets/Server/Entities/EqPacket.cs -rw-r--r-- 1.5 KiB
5b49b8a6 — Rutherther fix(packets): make correct inner separator in eq sub packet 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
//
//  EqPacket.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;
using NosSmooth.Packets.Enums.Players;
using NosSmooth.Packets.Server.Maps;
using NosSmooth.Packets.Server.Weapons;
using NosSmooth.PacketSerializer.Abstractions.Attributes;

namespace NosSmooth.Packets.Server.Entities;

/// <summary>
/// Player
/// </summary>
/// <param name="CharacterId"></param>
/// <param name="AuthorityType"></param>
/// <param name="Sex"></param>
/// <param name="HairStyle"></param>
/// <param name="HairColor"></param>
/// <param name="Class"></param>
/// <param name="EquipmentSubPacket"></param>
/// <param name="WeaponUpgradeRareSubPacket"></param>
/// <param name="ArmorUpgradeRareSubPacket"></param>
/// <param name="Size"></param>
[PacketHeader("eq", PacketSource.Server)]
[GenerateSerializer(true)]
public record EqPacket
(
    [PacketIndex(0)]
    long CharacterId,
    [PacketIndex(1)]
    AuthorityType AuthorityType,
    [PacketIndex(2)]
    SexType Sex,
    [PacketIndex(3)]
    HairStyle HairStyle,
    [PacketIndex(4)]
    HairColor HairColor,
    [PacketIndex(5)]
    PlayerClass Class,
    [PacketIndex(6, InnerSeparator = '.')]
    InEquipmentSubPacket EquipmentSubPacket,
    [PacketIndex(7)]
    UpgradeRareSubPacket? WeaponUpgradeRareSubPacket,
    [PacketIndex(8)]
    UpgradeRareSubPacket? ArmorUpgradeRareSubPacket,
    [PacketIndex(9)]
    byte Size
) : IPacket;
Do not follow this link