~ruther/NosSmooth

ref: ee5e9661e7e771ce6947630093a4eb4a4c16c876 NosSmooth/Packets/NosSmooth.Packets/Server/Players/LevPacket.cs -rw-r--r-- 1.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
//
//  LevPacket.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.PacketSerializer.Abstractions.Attributes;

namespace NosSmooth.Packets.Server.Players;

/// <summary>
/// Sent on map change.
/// </summary>
/// <remarks>
/// Contains information about the playing character.
/// </remarks>
/// <param name="Level">The level of the player.</param>
/// <param name="LevelXp">The xp in level. TODO</param>
/// <param name="JobLevel">The job level.</param>
/// <param name="JobLevelXp">The xp in job level. TODO</param>
/// <param name="XpLoad">Unknown TODO</param>
/// <param name="JobXpLoad">Unknown TODO</param>
/// <param name="Reputation">The reputation of the player.</param>
/// <param name="SkillCp">The skill cp. (Used for learning skills)</param>
/// <param name="HeroXp">The xp in hero level. TODO</param>
/// <param name="HeroLevel">The hero level. (shown as (+xx))</param>
/// <param name="HeroXpLoad">Unknown TODO</param>
[PacketHeader("lev", PacketSource.Server)]
[GenerateSerializer(true)]
public record LevPacket
(
    [PacketIndex(0)]
    byte Level,
    [PacketIndex(1)]
    long LevelXp,
    [PacketIndex(2)]
    byte JobLevel,
    [PacketIndex(3)]
    long JobLevelXp,
    [PacketIndex(4)]
    long XpLoad,
    [PacketIndex(5)]
    long JobXpLoad,
    [PacketIndex(6)]
    long Reputation,
    [PacketIndex(7)]
    int SkillCp,
    [PacketIndex(8)]
    long HeroXp,
    [PacketIndex(9)]
    byte HeroLevel,
    [PacketIndex(10)]
    long HeroXpLoad
) : IPacket;
Do not follow this link