From 7865cf1e04e8642cc3bc52c52acd7a5e1eaf5d18 Mon Sep 17 00:00:00 2001 From: Kurt Date: Wed, 4 Nov 2015 23:22:25 -0800 Subject: [PATCH] Realize ZO first file function with previous output fix, it's now obvious that this is just a copy of the zonedata in the master table. Pretty much just like the personal table having a huge concatenated list of every one. --- pk3DS/Structs.cs | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/pk3DS/Structs.cs b/pk3DS/Structs.cs index 6434eed..cad21e5 100644 --- a/pk3DS/Structs.cs +++ b/pk3DS/Structs.cs @@ -1099,7 +1099,7 @@ public byte[] Write() } public class Zone { - public ZoneInfo Info; + public ZoneData ZD; public ZoneEntities Entities; public ZoneScript MapScript; public ZoneEncounters Encounters; @@ -1110,7 +1110,7 @@ public Zone(byte[][] Zone) // A ZO is comprised of 4-5 files. // Array 0 is [Map Info] - Info = new ZoneInfo(Zone[0]); + ZD = new ZoneData(Zone[0]); // Array 1 is [Overworld Entities & their Scripts] Entities = new ZoneEntities(Zone[1]); // Array 2 is [Map Script] @@ -1126,7 +1126,7 @@ public Zone(byte[][] Zone) public byte[][] Write() { byte[][] Zone = new byte[(File5 != null) ? 5 : 4][]; - Zone[0] = Info.Write(); + Zone[0] = ZD.Write(); Zone[1] = Entities.Write(); Zone[2] = MapScript.Write(); Zone[3] = Encounters.Write(); @@ -1137,18 +1137,6 @@ public byte[][] Write() return Zone; } - public class ZoneInfo - { - public byte[] InfoData; // File details unknown. - public ZoneInfo(byte[] data) - { - InfoData = data; - } - public byte[] Write() - { - return InfoData; - } - } public class ZoneEntities { public byte[] Data; // File details unknown.