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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user