Add known structure offsets

This commit is contained in:
Kurt
2015-08-01 22:10:18 -07:00
parent 349c3a6b84
commit 05c7d91e2f

View File

@@ -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()
{