mirror of
https://github.com/kwsch/NHSE.git
synced 2026-05-05 04:35:41 -05:00
only some surface appearance properties; interior item layout nope use enum values for house info interface Closes #95 Closes #96 Changes the displayed villager indexes from 1-indexed to 0-indexed to match the game's references.
24 lines
1.0 KiB
C#
24 lines
1.0 KiB
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace NHSE.Core
|
|
{
|
|
[StructLayout(LayoutKind.Explicit, Size = SIZE, Pack = 4)]
|
|
public class PlayerHouse : IHouseInfo
|
|
{
|
|
public const int SIZE = 0x26400;
|
|
|
|
[field: FieldOffset(0x000)] public uint HouseLevel { get; set; }
|
|
[field: FieldOffset(0x004)] public WallType WallUniqueID { get; set; }
|
|
[field: FieldOffset(0x006)] public RoofType RoofUniqueID { get; set; }
|
|
[field: FieldOffset(0x008)] public DoorKind DoorUniqueID { get; set; }
|
|
[field: FieldOffset(0x00A)] public WallType OrderWallUniqueID { get; set; }
|
|
[field: FieldOffset(0x00C)] public RoofType OrderRoofUniqueID { get; set; }
|
|
[field: FieldOffset(0x00E)] public DoorKind OrderDoorUniqueID { get; set; }
|
|
|
|
[field: FieldOffset(0x263D4)] public GSaveItemName DoorDecoItemName { get; set; }
|
|
|
|
[field: FieldOffset(0x263E0)] public GSaveItemName PostItemName { get; set; }
|
|
[field: FieldOffset(0x263E8)] public GSaveItemName OrderPostItemName { get; set; }
|
|
}
|
|
}
|