예제 #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));
 }