NHSE/NHSE.Core/Structures/Misc/GSaveFg.cs
Kurt b88c518d5c
Update FieldItemEditor for 3.0.0 (#716)
Updates the Field Item Editor to render layers based on the entire map, and the per-patch positioning of each layer.
Import/export will gracefully handle upgrade/downgrade, and viewport import/export will gracefully update tiles rather than a per-acre basis.

Performance has also been slightly improved; no allocation is done anymore when updating the image.
2026-01-25 16:55:38 -06:00

22 lines
1.1 KiB
C#

using System.Runtime.InteropServices;
#pragma warning disable CS8618, CA1815, CA1819, IDE1006
namespace NHSE.Core;
[StructLayout(LayoutKind.Sequential, Pack = 4)]
public sealed class GSaveFg
{
public const int SIZE = 0x928;
private const int _7b9816fbCount = 0x900;
private const int _e88f809dCount = 8;
[field: MarshalAs(UnmanagedType.ByValArray, SizeConst = _7b9816fbCount)]
public byte[] _7b9816fb { get; set; } // @0x0 size 0x900, align 1
public ushort SpecialityFruit { get; set; } // @0x900 size 0x2, align 2
public ushort SisterFruit { get; set; } // @0x902 size 0x2, align 2
[field: MarshalAs(UnmanagedType.ByValArray, SizeConst = _e88f809dCount)]
public uint[] _e88f809d { get; set; } // @0x904 size 0x4, align 4
public byte SisterFlower { get; set; } // @0x924 size 0x1, align 1
public byte SpecialityFlower { get; set; } // @0x925 size 0x1, align 1
}