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);
 }
예제 #2
0
 public override void Read(PackFileDeserializer des, BinaryReaderEx br)
 {
     base.Read(des, br);
     m_meshInfos        = des.ReadClassArray <hkaiNavMeshCutterMeshInfo>(br);
     m_connectivityInfo = new hkaiNavMeshCutterSavedConnectivity();
     m_connectivityInfo.Read(des, br);
     m_streamingCollection        = des.ReadClassPointer <hkaiStreamingCollection>(br);
     m_forceRecutFaceKeys         = des.ReadUInt32Array(br);
     m_forceClearanceCalcFaceKeys = des.ReadUInt32Array(br);
     m_up = des.ReadVector4(br);
     m_edgeMatchParams = new hkaiNavMeshEdgeMatchingParameters();
     m_edgeMatchParams.Read(des, br);
     br.ReadUInt64();
     m_cutEdgeTolerance               = br.ReadSingle();
     m_minEdgeMatchingLength          = br.ReadSingle();
     m_smallGapFixupTolerance         = br.ReadSingle();
     m_performValidationChecks        = br.ReadBoolean();
     m_clearanceResetMethod           = (ClearanceResetMethod)br.ReadByte();
     m_recomputeClearanceAfterCutting = br.ReadBoolean();
     m_useNewCutter  = br.ReadBoolean();
     m_domainQuantum = br.ReadSingle();
     br.ReadUInt64();
     br.ReadUInt32();
 }
예제 #3
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();
 }