public virtual void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     m_volume              = des.ReadClassPointer <hkaiVolume>(br);
     m_material            = br.ReadInt32();
     m_characterWidthUsage = (CharacterWidthUsage)br.ReadByte();
     br.ReadUInt16();
     br.ReadByte();
     m_maxWalkableSlope   = br.ReadSingle();
     m_edgeMatchingParams = new hkaiNavMeshEdgeMatchingParameters();
     m_edgeMatchingParams.Read(des, br);
     br.ReadUInt32();
     m_simplificationSettings = new hkaiNavMeshSimplificationUtilsSettings();
     m_simplificationSettings.Read(des, br);
 }
Ejemplo n.º 2
0
 public override void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     base.Read(des, br);
     m_characterHeight = br.ReadSingle();
     br.ReadUInt64();
     br.ReadUInt32();
     m_up = des.ReadVector4(br);
     m_quantizationGridSize = br.ReadSingle();
     m_maxWalkableSlope     = br.ReadSingle();
     m_triangleWinding      = (TriangleWinding)br.ReadByte();
     br.ReadUInt16();
     br.ReadByte();
     m_degenerateAreaThreshold  = br.ReadSingle();
     m_degenerateWidthThreshold = br.ReadSingle();
     m_convexThreshold          = br.ReadSingle();
     m_maxNumEdgesPerFace       = br.ReadInt32();
     m_edgeMatchingParams       = new hkaiNavMeshEdgeMatchingParameters();
     m_edgeMatchingParams.Read(des, br);
     m_edgeMatchingMetric       = (EdgeMatchingMetric)br.ReadUInt32();
     m_edgeConnectionIterations = br.ReadInt32();
     br.ReadUInt32();
     m_regionPruningSettings = new hkaiNavMeshGenerationSettingsRegionPruningSettings();
     m_regionPruningSettings.Read(des, br);
     m_wallClimbingSettings = new hkaiNavMeshGenerationSettingsWallClimbingSettings();
     m_wallClimbingSettings.Read(des, br);
     br.ReadUInt64();
     br.ReadUInt32();
     br.ReadUInt16();
     m_boundsAabb = new hkAabb();
     m_boundsAabb.Read(des, br);
     m_carvers  = des.ReadClassPointerArray <hkaiCarver>(br);
     m_painters = des.ReadClassPointerArray <hkaiMaterialPainter>(br);
     br.ReadUInt64();
     m_defaultConstructionProperties = br.ReadUInt32();
     br.ReadUInt32();
     m_materialMap = des.ReadClassArray <hkaiNavMeshGenerationSettingsMaterialConstructionPair>(br);
     m_fixupOverlappingTriangles = br.ReadBoolean();
     br.ReadUInt16();
     br.ReadByte();
     m_overlappingTrianglesSettings = new hkaiOverlappingTrianglesSettings();
     m_overlappingTrianglesSettings.Read(des, br);
     m_weldInputVertices = br.ReadBoolean();
     br.ReadUInt16();
     br.ReadByte();
     m_weldThreshold        = br.ReadSingle();
     m_minCharacterWidth    = br.ReadSingle();
     m_characterWidthUsage  = (CharacterWidthUsage)br.ReadByte();
     m_enableSimplification = br.ReadBoolean();
     br.ReadUInt16();
     m_simplificationSettings = new hkaiNavMeshSimplificationUtilsSettings();
     m_simplificationSettings.Read(des, br);
     m_carvedMaterialDeprecated        = br.ReadInt32();
     m_carvedCuttingMaterialDeprecated = br.ReadInt32();
     m_setBestFaceCenters           = br.ReadBoolean();
     m_checkEdgeGeometryConsistency = br.ReadBoolean();
     m_saveInputSnapshot            = br.ReadBoolean();
     br.ReadUInt32();
     br.ReadByte();
     m_snapshotFilename = des.ReadStringPointer(br);
     m_overrideSettings = des.ReadClassArray <hkaiNavMeshGenerationSettingsOverrideSettings>(br);
     br.ReadUInt64();
 }