mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-18 05:47:43 +01:00
28 lines
1.2 KiB
C#
28 lines
1.2 KiB
C#
using System.Diagnostics.CodeAnalysis;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace Dalamud.Game.Gui.PartyFinder.Internal
|
|
{
|
|
/// <summary>
|
|
/// The structure of the PartyFinder packet.
|
|
/// </summary>
|
|
[SuppressMessage("StyleCop.CSharp.OrderingRules", "SA1201:Elements should appear in the correct order", Justification = "Sequential struct marshaling.")]
|
|
[SuppressMessage("StyleCop.CSharp.OrderingRules", "SA1202:Elements should be ordered by access", Justification = "Sequential struct marshaling.")]
|
|
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1600:Elements should be documented", Justification = "Document the field usage.")]
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
internal readonly struct PartyFinderPacket
|
|
{
|
|
/// <summary>
|
|
/// Gets the size of this packet.
|
|
/// </summary>
|
|
internal static int PacketSize { get; } = Marshal.SizeOf<PartyFinderPacket>();
|
|
|
|
internal readonly int BatchNumber;
|
|
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)]
|
|
private readonly byte[] padding1;
|
|
|
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)]
|
|
internal readonly PartyFinderPacketListing[] Listings;
|
|
}
|
|
}
|