private void ReadLeafs() { leafLump = new BSPLeafLump(); int leafCount = header.directory [10].length / 28; bspInfo.mapNum_leafs = leafCount; leafLump.leafs = new BSPLeaf[leafCount]; leafLump.numLeafs = leafCount; BSPfile.BaseStream.Position = header.directory [10].offset; for (int i = 0; i < leafCount; i++) { leafLump.leafs [i] = new BSPLeaf(BSPfile.ReadInt32(), BSPfile.ReadInt32(), BSPfile.ReadBBoxshort(), BSPfile.ReadBBoxshort(), BSPfile.ReadUInt16(), BSPfile.ReadUInt16(), BSPfile.ReadBytes(4)); } }
private void ReadLeafs () { leafLump = new BSPLeafLump (); int leafCount = header.directory [10].length / 28; bspInfo.mapNum_leafs = leafCount; leafLump.leafs = new BSPLeaf[leafCount]; leafLump.numLeafs = leafCount; BSPfile.BaseStream.Position = header.directory [10].offset; for (int i = 0; i < leafCount; i++) { leafLump.leafs [i] = new BSPLeaf (BSPfile.ReadInt32 (), BSPfile.ReadInt32 (), BSPfile.ReadBBoxshort (), BSPfile.ReadBBoxshort (), BSPfile.ReadUInt16 (), BSPfile.ReadUInt16 (), BSPfile.ReadBytes (4)); } }