// // 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 System.Collections.Generic; using NosSmooth.Packets.Attributes; using NosSmooth.Packets.Enums; namespace NosSmooth.Packets.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. [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)] short HpPercentage, [PacketIndex(5)] short MpPercentage, [PacketIndex(6)] long Hp, [PacketIndex(7)] long Mp, [PacketListIndex(8, ListSeparator = ' ')] List BuffVNums ) : IPacket;