mirror of
https://github.com/kwsch/pk3DS.git
synced 2026-10-02 22:06:40 -05:00
Add known structure offsets
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user