mirror of
https://github.com/kwsch/NHSE.git
synced 2026-08-20 09:34:57 -05:00
Add raw value get/set
This commit is contained in:
@@ -18,6 +18,8 @@ public class Item : ICopyableItem<Item>
|
||||
public const ushort MessageBottleEgg = 0x3100;
|
||||
public const int SIZE = 8;
|
||||
|
||||
[field: FieldOffset(0)] public ulong RawValue { get; set; }
|
||||
|
||||
[field: FieldOffset(0)] public ushort ItemId { get; set; }
|
||||
[field: FieldOffset(2)] public byte SystemParam { get; set; }
|
||||
[field: FieldOffset(3)] public byte AdditionalParam { get; set; }
|
||||
@@ -192,11 +194,8 @@ public void SetAsExtension(Item tile, byte x, byte y)
|
||||
#endregion
|
||||
|
||||
public Item() { } // marshalling
|
||||
|
||||
public Item(ushort itemId = NONE)
|
||||
{
|
||||
ItemId = itemId;
|
||||
}
|
||||
public Item(ulong raw) => RawValue = raw;
|
||||
public Item(ushort itemId = NONE) => ItemId = itemId;
|
||||
|
||||
public void Delete()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user