~ruther/NosSmooth

NosSmooth/Packets/NosSmooth.Packets/Server/Raids/RaidPlayerHealthsSubPacket.cs -rw-r--r-- 914 bytes
8e5e00cc — František Boháček chore: bump packet versions 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
//
//  RaidPlayerHealthsSubPacket.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.Raids;

/// <summary>
/// A sub packet of <see cref="RaidPacket"/>
/// present for PlayerHealths. Contains
/// information about player healths.
/// </summary>
/// <param name="PlayerId">The id of the player.</param>
/// <param name="HpPercentage">The hp percentage of the player.</param>
/// <param name="MpPercentage">The mp percentage of the player.</param>
[PacketHeader(null, PacketSource.Server)]
[GenerateSerializer(true)]
public record RaidPlayerHealthsSubPacket
(
    [PacketIndex(0)]
    long PlayerId,
    [PacketIndex(1)]
    byte HpPercentage,
    [PacketIndex(2)]
    byte MpPercentage
) : IPacket;
Do not follow this link