From 05c7d91e2f555adca3a0eaef8d08223b6d04a993 Mon Sep 17 00:00:00 2001 From: Kurt Date: Sat, 1 Aug 2015 22:10:18 -0700 Subject: [PATCH] Add known structure offsets --- pk3DS/Structs.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pk3DS/Structs.cs b/pk3DS/Structs.cs index 86be05f..36c4f77 100644 --- a/pk3DS/Structs.cs +++ b/pk3DS/Structs.cs @@ -1068,10 +1068,12 @@ public byte[] Write() public class EntityNPC { // 0x30 Bytes Long + public ushort ID; public byte[] Raw; public EntityNPC(byte[] data) { Raw = data; + ID = BitConverter.ToUInt16(data, 0x4); } public byte[] Write() { @@ -1082,9 +1084,14 @@ public class EntityWarp { // 0x18 Bytes Long public byte[] Raw; + public ushort DestinationMap; + public ushort DestinationTileIndex; public EntityWarp(byte[] data) { Raw = data; + + DestinationMap = BitConverter.ToUInt16(data, 0x4); + DestinationTileIndex = BitConverter.ToUInt16(data, 0x6); } public byte[] Write() {