|
| 1 | +using FFXIVClientStructs.FFXIV.Client.Network; |
| 2 | + |
| 3 | +namespace FFXIVClientStructs.FFXIV.Client.Game.Network; |
| 4 | + |
| 5 | +// TODO: remove with HandleUpdateInventorySlotPacket (replaced by InventoryItemPacket) |
| 6 | +[GenerateInterop] |
| 7 | +[StructLayout(LayoutKind.Explicit, Size = 0x3D)] |
| 8 | +public partial struct UpdateInventorySlotPacket { |
| 9 | + [FieldOffset(0x00)] public uint ContextId; |
| 10 | + [FieldOffset(0x08)] public ushort InventoryType; |
| 11 | + [FieldOffset(0x0A)] public short InventorySlot; |
| 12 | + [FieldOffset(0x0C)] public int Quantity; |
| 13 | + [FieldOffset(0x10)] public uint ItemId; |
| 14 | + [FieldOffset(0x18)] public ulong CrafterContentId; |
| 15 | + [FieldOffset(0x20)] public byte ItemFlags; |
| 16 | + [FieldOffset(0x22)] public ushort Condition; |
| 17 | + [FieldOffset(0x24)] public ushort SpiritbondOrCollectability; |
| 18 | + [FieldOffset(0x28)] public uint GlamourId; |
| 19 | + [FieldOffset(0x2C), FixedSizeArray] internal FixedSizeArray5<short> _materia; |
| 20 | + [FieldOffset(0x36), FixedSizeArray] internal FixedSizeArray5<byte> _materiaGrades; |
| 21 | + [FieldOffset(0x3B), FixedSizeArray] internal FixedSizeArray2<byte> _stains; |
| 22 | +} |
| 23 | + |
| 24 | +/// <remarks> Packet for <see cref="PacketDispatcher.HandleInventoryItemPacket"/> and <see cref="PacketDispatcher.HandleInventoryItemUpdatePacket"/> </remarks> |
| 25 | +[GenerateInterop] |
| 26 | +[StructLayout(LayoutKind.Explicit, Size = 0x3D)] |
| 27 | +public partial struct InventoryItemPacket { |
| 28 | + [FieldOffset(0x00)] public uint ContextId; |
| 29 | + [FieldOffset(0x08)] public ushort InventoryType; |
| 30 | + [FieldOffset(0x0A)] public ushort Slot; |
| 31 | + [FieldOffset(0x0C)] public uint Quantity; |
| 32 | + [FieldOffset(0x10)] public uint ItemId; |
| 33 | + |
| 34 | + [FieldOffset(0x18)] public ulong CrafterContentId; |
| 35 | + [FieldOffset(0x20)] public byte ItemFlags; |
| 36 | + |
| 37 | + [FieldOffset(0x22)] public ushort Condition; |
| 38 | + [FieldOffset(0x24)] public ushort SpiritbondOrCollectability; |
| 39 | + |
| 40 | + [FieldOffset(0x28)] public uint GlamourId; |
| 41 | + [FieldOffset(0x2C), FixedSizeArray] internal FixedSizeArray5<ushort> _materia; |
| 42 | + [FieldOffset(0x36), FixedSizeArray] internal FixedSizeArray5<byte> _materiaGrades; |
| 43 | + [FieldOffset(0x3B), FixedSizeArray] internal FixedSizeArray2<byte> _stains; |
| 44 | +} |
| 45 | + |
| 46 | +/// <remarks> Packet for <see cref="PacketDispatcher.HandleInventoryItemCurrencyPacket"/> </remarks> |
| 47 | +[StructLayout(LayoutKind.Explicit, Size = 0x14)] |
| 48 | +public struct InventoryItemCurrencyPacket { |
| 49 | + [FieldOffset(0x00)] public uint ContextId; |
| 50 | + [FieldOffset(0x04)] public ushort InventoryType; |
| 51 | + [FieldOffset(0x06)] public ushort Slot; |
| 52 | + [FieldOffset(0x08)] public uint Quantity; |
| 53 | + |
| 54 | + [FieldOffset(0x10)] public uint ItemId; |
| 55 | +} |
| 56 | + |
| 57 | +/// <remarks> Packet for <see cref="PacketDispatcher.HandleInventoryItemSymbolicPacket"/> </remarks> |
| 58 | +[StructLayout(LayoutKind.Explicit, Size = 0x10)] |
| 59 | +public struct InventoryItemSymbolicPacket { |
| 60 | + [FieldOffset(0x00)] public uint ContextId; |
| 61 | + [FieldOffset(0x04)] public ushort InventoryType; |
| 62 | + [FieldOffset(0x06)] public ushort Slot; |
| 63 | + [FieldOffset(0x08)] public uint Quantity; |
| 64 | + [FieldOffset(0x0C)] public ushort TargetInventoryType; |
| 65 | + [FieldOffset(0x0E)] public ushort TargetSlot; |
| 66 | +} |
0 commit comments