// // NRunPacket.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.Entities; using NosSmooth.Packets.Enums.NRun; using NosSmooth.PacketSerializer.Abstractions.Attributes; namespace NosSmooth.Packets.Client; /// /// Npc run packet used for various operations. /// /// The type of the nrun. /// The subtype, depends on the type. See NosSmooth.Packets.Enums.NRun. /// The type of the entity (usually npc). /// The id of the entity (npc). /// Unknown function. TODO. [PacketHeader("n_run", PacketSource.Client)] [GenerateSerializer(true)] public record NRunPacket ( [PacketIndex(0)] NRunType Type, [PacketIndex(1)] short SubType, [PacketIndex(2)] EntityType EntityType, [PacketIndex(3)] long EntityId, [PacketIndex(4, IsOptional = true)] byte? Confirmation ) : IPacket;