private static void AddKeyPointFromScheme( SurvivalStatHazardLevel segmentLevel, PersonSurvivalStatKeypointLevel schemeSegmentLevel, IPersonSurvivalStatKeySegmentSubScheme[] keyPoints, List <SurvivalStatKeySegment> keyPointList) { var schemeKeySegment = GetKeyPointSchemeValue(schemeSegmentLevel, keyPoints); if (schemeKeySegment == null) { return; } var keySegment = new SurvivalStatKeySegment(schemeKeySegment.Start, schemeKeySegment.End, segmentLevel); keyPointList.Add(keySegment); }
private static IPersonSurvivalStatKeySegmentSubScheme GetKeyPointSchemeValue( PersonSurvivalStatKeypointLevel level, IPersonSurvivalStatKeySegmentSubScheme[] keyPoints) { return(keyPoints.SingleOrDefault(x => x.Level == level)); }