Example #1
0
 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 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();
 }