//
// 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;
///
/// A sub packet of
/// present for PlayerHealths. Contains
/// information about player healths.
///
/// The id of the player.
/// The hp percentage of the player.
/// The mp percentage of the player.
[PacketHeader(null, PacketSource.Server)]
[GenerateSerializer(true)]
public record RaidPlayerHealthsSubPacket
(
[PacketIndex(0)]
long PlayerId,
[PacketIndex(1)]
byte HpPercentage,
[PacketIndex(2)]
byte MpPercentage
) : IPacket;