internal override StructureBspClusterDataBlockNew[] ReadStructureBspClusterDataBlockNewArray(BinaryReader binaryReader) { binaryReader.ReadBytes(8); using (binaryReader.BaseStream.Pin( )) { ResourceStream source = Halo2.GetResourceBlock(this.geometryBlockInfo); BinaryReader reader = new BinaryReader(source); return(new[] { new StructureBspClusterDataBlockNew(reader) }); } }
/// <summary> /// Loads geometry data into the tagblock from resource stream /// </summary> /// <param name="binaryReader"></param> /// <returns></returns> internal override RenderModelSectionDataBlock[] ReadRenderModelSectionDataBlockArray(BinaryReader binaryReader) { binaryReader.ReadBytes(8); using (binaryReader.BaseStream.Pin( )) { var geometryBlockInfo = new GlobalGeometryBlockInfoStructBlock(binaryReader); ResourceStream source = Halo2.GetResourceBlock(geometryBlockInfo); BinaryReader reader = new BinaryReader(source); return(new[] { new RenderModelSectionDataBlock(reader) }); } }