protected override void ReadInternal(Reader reader)
        {
            ind_material  = reader.ReadUInt16();
            triangles     = new Reference <GeometricObjectElementCollideTrianglesData>(reader);
            ind_37        = reader.ReadUInt16();
            num_triangles = reader.ReadUInt16();
            unk           = reader.ReadUInt16();
            type_material = reader.ReadUInt16();

            triangles.Resolve(reader, t => t.length = num_triangles);
            material = new GenericReference(type_material, ind_material, reader, true);
        }
Example #2
0
        protected override void ReadInternal(Reader reader)
        {
            transformIndex = reader.ReadUInt16();
            dataIndex      = reader.ReadUInt16();
            children       = new Reference <SuperObjectArray>(reader, false);
            boundingVolume = new Reference <CompressedVector3Array>(reader, true, v => v.length = 2);
            type           = reader.ReadUInt16();
            num_children   = reader.ReadUInt16();
            unk            = reader.ReadUInt16();
            unk2           = reader.ReadUInt16();
            flags          = reader.ReadUInt32();

            transform = new ROMTransform(transformIndex);
            children.Resolve(reader, soa => soa.length = num_children);
            data = new GenericReference(type, dataIndex, reader, true);
        }