Пример #1
0
        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);
        }
Пример #2
0
 private static IPersonSurvivalStatKeySegmentSubScheme GetKeyPointSchemeValue(
     PersonSurvivalStatKeypointLevel level,
     IPersonSurvivalStatKeySegmentSubScheme[] keyPoints)
 {
     return(keyPoints.SingleOrDefault(x => x.Level == level));
 }