// // StPacket.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.Entities; using NosSmooth.PacketSerializer.Abstractions.Attributes; namespace NosSmooth.Packets.Server.Entities; /// /// Sent as a response to "ncif" packet. /// /// The type of the entity. /// The id of the entity. /// The level of the entity. /// The hero level. (for players only) /// The current hp percentage. /// The current mp percentage. /// The current amount of hp. /// The current amount of mp. /// The list of the buffs the entity has. [PacketHeader("st", PacketSource.Server)] [GenerateSerializer(true)] public record StPacket ( [PacketIndex(0)] EntityType EntityType, [PacketIndex(1)] long EntityId, [PacketIndex(2)] byte Level, [PacketIndex(3)] byte HeroLevel, [PacketIndex(4)] byte HpPercentage, [PacketIndex(5)] byte MpPercentage, [PacketIndex(6)] long Hp, [PacketIndex(7)] long Mp, [PacketListIndex(8, ListSeparator = ' ', InnerSeparator = '.')] IReadOnlyList? BuffVNums ) : IPacket;