mirror of
https://github.com/kwsch/NHSE.git
synced 2026-07-17 16:59:53 -05:00
16 lines
449 B
C#
16 lines
449 B
C#
using System.Collections.Generic;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace NHSE.Core
|
|
{
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public class MapItem : Item
|
|
{
|
|
public new const int SIZE = 0x10;
|
|
|
|
public ushort X1, X2, X3, X4;
|
|
public new static MapItem[] GetArray(byte[] data) => data.GetArray<MapItem>(SIZE);
|
|
public static byte[] SetArray(IReadOnlyList<MapItem> data) => data.SetArray(SIZE);
|
|
}
|
|
}
|