Phase 0.1: Resource extraction pipeline

- Add OrderedDictionary JSON converter for round-trip support
- Add ObjLoadRaw() for GDI+-free binary resource loading
- Simplify Ser.cs JSON methods (consistent settings, JsonConvert API)
- Create SlaveMatrix.Extract CLI tool for resource extraction
- Manual export walks Obj/Difs/Dif/Pars/Par hierarchy
- Exports all 13 Obj resources to structured JSON with shape data
- Update .gitignore for build artifacts and extraction output
This commit is contained in:
2026-06-13 17:17:58 +02:00
parent db1cbb3ca5
commit fb0ff502f0
7 changed files with 382 additions and 127 deletions

View File

@@ -156,11 +156,23 @@ namespace _2DGAMELIB
GetMinMaxY(Par, ref MM[1].Y, ref MM[0].Y);
}
public static Obj ObjLoad(this byte[] bd)
{
public static Obj ObjLoad(this byte[] bd)
{
return bd.Load<byte[]>().ToDeserialObject<Obj>().SetDefaultR();
}
public static Obj? ObjLoadRaw(this byte[] bd)
{
try
{
return bd.Load<byte[]>().ToDeserialObject<Obj>();
}
catch
{
return null;
}
}
public static bool Lot(this double p)
{