// // MlObjPacket.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.Miniland; /// /// Miniland object packet. /// /// The slot in the inventory. /// Whether the item is placed in the miniland. /// The x coordinate, if in use. /// The y coordinate, if in use. /// The width of the object. /// The height of the object. /// Unknown TODO. /// The durability points of a minigame. /// Unknown TODO. /// Unknown TODO. [PacketHeader("mlobj", PacketSource.Server)] [GenerateSerializer(true)] public record MlObjPacket ( [PacketIndex(0)] short Slot, [PacketIndex(1)] bool InUse, [PacketIndex(2)] short X, [PacketIndex(3)] short Y, [PacketIndex(4)] byte Width, [PacketIndex(5)] byte Height, [PacketIndex(6)] byte Unknown, [PacketIndex(7)] int DurabilityPoints, [PacketIndex(8)] bool Unknown1, [PacketIndex(9)] bool Unknown2 ) : IPacket;