Library used for extracting the binary .i3d.shapes files used by the GIANTS engine.
- (Based on https://github.com/Donkie/I3DShapesTool)
- Reverse engineering of shape 1, 2 and 3 type.
For unloading parsed objects:
var shapeFile = new ShapeFile(shapeFilePath);
// Load all known types
var shapes = shapeFile.ReadKnowTypes();
// OR Custom shape types
shapes = container.ReadKnowTypes(ShapeType.Type1, ShapeType.Spline, ShapeType.NavMesh);
var shapesType1 = shapes.OfType<ShapeType1>().ToArray();
For unloading raw objects:
var shapeFile = new ShapeFile(shapeFilePath);
// Load all types
var shapes = shapeFile.ReadRawShape();
// OR Custom shape types
shapes = shapeFile.ReadRawShape(1, 2, 3);
For unloading named raw objects:
var shapeFile = new ShapeFile(shapeFilePath);
// Load all types
var shapes = shapeFile.ReadRawNamedShape();
// OR Custom shape types
shapes = shapeFile.ReadRawNamedShape(1, 2, 3);