internal GlobalGeometrySectionInfoStructBlockBase(BinaryReader binaryReader) { this.totalVertexCount = binaryReader.ReadInt16(); this.totalTriangleCount = binaryReader.ReadInt16(); this.totalPartCount = binaryReader.ReadInt16(); this.shadowCastingTriangleCount = binaryReader.ReadInt16(); this.shadowCastingPartCount = binaryReader.ReadInt16(); this.opaquePointCount = binaryReader.ReadInt16(); this.opaqueVertexCount = binaryReader.ReadInt16(); this.opaquePartCount = binaryReader.ReadInt16(); this.opaqueMaxNodesVertex = binaryReader.ReadByte(); this.transparentMaxNodesVertex = binaryReader.ReadByte(); this.shadowCastingRigidTriangleCount = binaryReader.ReadInt16(); this.geometryClassification = (GeometryClassification)binaryReader.ReadInt16(); this.geometryCompressionFlags = (GeometryCompressionFlags)binaryReader.ReadInt16(); this.eMPTYSTRING = ReadGlobalGeometryCompressionInfoBlockArray(binaryReader); this.hardwareNodeCount = binaryReader.ReadByte(); this.nodeMapSize = binaryReader.ReadByte(); this.softwarePlaneCount = binaryReader.ReadInt16(); this.totalSubpartCont = binaryReader.ReadInt16(); this.sectionLightingFlags = (SectionLightingFlags)binaryReader.ReadInt16(); }
public override System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> ReadFields(System.IO.BinaryReader binaryReader) { System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(base.ReadFields(binaryReader)); this.TotalVertexCount = binaryReader.ReadInt16(); this.TotalTriangleCount = binaryReader.ReadInt16(); this.TotalPartCount = binaryReader.ReadInt16(); this.ShadowCastingTriangleCount = binaryReader.ReadInt16(); this.ShadowCastingPartCount = binaryReader.ReadInt16(); this.OpaquePointCount = binaryReader.ReadInt16(); this.OpaqueVertexCount = binaryReader.ReadInt16(); this.OpaquePartCount = binaryReader.ReadInt16(); this.OpaqueMaxNodesVertex = binaryReader.ReadByte(); this.TransparentMaxNodesVertex = binaryReader.ReadByte(); this.ShadowCastingRigidTriangleCount = binaryReader.ReadInt16(); this.GeometryClassification = ((GeometryClassificationEnum)(binaryReader.ReadInt16())); this.GlobalGeometrySectionInfoStructGeometryCompressionFlags = ((GeometryCompressionFlags)(binaryReader.ReadInt16())); pointerQueue.Enqueue(binaryReader.ReadBlamPointer(56)); this.HardwareNodeCount = binaryReader.ReadByte(); this.NodeMapSize = binaryReader.ReadByte(); this.SoftwarePlaneCount = binaryReader.ReadInt16(); this.TotalSubpartCont = binaryReader.ReadInt16(); this.GlobalGeometrySectionInfoStructSectionLightingFlags = ((SectionLightingFlags)(binaryReader.ReadInt16())); return(pointerQueue); }
public GlobalGeometrySectionInfoStruct(BinaryReader binaryReader) { this.totalVertexCount = binaryReader.ReadInt16(); this.totalTriangleCount = binaryReader.ReadInt16(); this.totalPartCount = binaryReader.ReadInt16(); this.shadowCastingTriangleCount = binaryReader.ReadInt16(); this.shadowCastingPartCount = binaryReader.ReadInt16(); this.opaquePointCount = binaryReader.ReadInt16(); this.opaqueVertexCount = binaryReader.ReadInt16(); this.opaquePartCount = binaryReader.ReadInt16(); this.opaqueMaxNodesVertex = binaryReader.ReadByte(); this.transparentMaxNodesVertex = binaryReader.ReadByte(); this.shadowCastingRigidTriangleCount = binaryReader.ReadInt16(); this.geometryClassification = (GeometryClassification)binaryReader.ReadInt16(); this.geometryCompressionFlags = (GeometryCompressionFlags)binaryReader.ReadInt16(); this.eMPTYSTRING = ReadEmptystring(binaryReader); this.hardwareNodeCount = binaryReader.ReadByte(); this.nodeMapSize = binaryReader.ReadByte(); this.softwarePlaneCount = binaryReader.ReadInt16(); this.totalSubpartCont = binaryReader.ReadInt16(); this.sectionLightingFlags = (SectionLightingFlags)binaryReader.ReadInt16(); }
public GlobalGeometrySectionInfoStruct(BinaryReader binaryReader) { this.totalVertexCount = binaryReader.ReadInt16(); this.totalTriangleCount = binaryReader.ReadInt16(); this.totalPartCount = binaryReader.ReadInt16(); this.shadowCastingTriangleCount = binaryReader.ReadInt16(); this.shadowCastingPartCount = binaryReader.ReadInt16(); this.opaquePointCount = binaryReader.ReadInt16(); this.opaqueVertexCount = binaryReader.ReadInt16(); this.opaquePartCount = binaryReader.ReadInt16(); this.opaqueMaxNodesVertex = binaryReader.ReadByte(); this.transparentMaxNodesVertex = binaryReader.ReadByte(); this.shadowCastingRigidTriangleCount = binaryReader.ReadInt16(); this.geometryClassification = (GeometryClassification)binaryReader.ReadInt16(); this.geometryCompressionFlags = (GeometryCompressionFlags)binaryReader.ReadInt16(); { var elementSize = Marshal.SizeOf(typeof(GlobalGeometryCompressionInfoBlock)); var blamPointer = binaryReader.ReadBlamPointer(elementSize); this.eMPTYSTRING = new GlobalGeometryCompressionInfoBlock[blamPointer.Count]; using (binaryReader.BaseStream.Pin()) { for (int i = 0; i < blamPointer.Count; ++i) { binaryReader.BaseStream.Position = blamPointer[i]; this.eMPTYSTRING[i] = new GlobalGeometryCompressionInfoBlock(binaryReader); } } } this.hardwareNodeCount = binaryReader.ReadByte(); this.nodeMapSize = binaryReader.ReadByte(); this.softwarePlaneCount = binaryReader.ReadInt16(); this.totalSubpartCont = binaryReader.ReadInt16(); this.sectionLightingFlags = (SectionLightingFlags)binaryReader.ReadInt16(); }