Esempio n. 1
0
        public static Season GetReportedSeason(float yearPct, float latitude)
        {
            float by;
            float by2;
            float by3;
            float by4;
            float num;
            float num2;

            SeasonUtility.GetSeason(yearPct, latitude, out by, out by2, out by3, out by4, out num, out num2);
            Season result;

            if (num == 1f)
            {
                result = Season.PermanentSummer;
            }
            else if (num2 == 1f)
            {
                result = Season.PermanentWinter;
            }
            else
            {
                result = GenMath.MaxBy <Season>(Season.Spring, by, Season.Summer, by2, Season.Fall, by3, Season.Winter, by4);
            }
            return(result);
        }
Esempio n. 2
0
        public static Season GetDominantSeason(float yearPct, float latitude)
        {
            float by;
            float by2;
            float by3;
            float by4;
            float by5;
            float by6;

            SeasonUtility.GetSeason(yearPct, latitude, out by, out by2, out by3, out by4, out by5, out by6);
            return(GenMath.MaxBy <Season>(Season.Spring, by, Season.Summer, by2, Season.Fall, by3, Season.Winter, by4, Season.PermanentSummer, by5, Season.PermanentWinter, by6));
        }
Esempio n. 3
0
        public static Season GetDominantSeason(float yearPct, float latitude)
        {
            float by  = default(float);
            float by2 = default(float);
            float by3 = default(float);
            float by4 = default(float);
            float by5 = default(float);
            float by6 = default(float);

            SeasonUtility.GetSeason(yearPct, latitude, out by, out by2, out by3, out by4, out by5, out by6);
            return(GenMath.MaxBy(Season.Spring, by, Season.Summer, by2, Season.Fall, by3, Season.Winter, by4, Season.PermanentSummer, by5, Season.PermanentWinter, by6));
        }
Esempio n. 4
0
        public static Season GetReportedSeason(float yearPct, float latitude)
        {
            float by   = default(float);
            float by2  = default(float);
            float by3  = default(float);
            float by4  = default(float);
            float num  = default(float);
            float num2 = default(float);

            SeasonUtility.GetSeason(yearPct, latitude, out by, out by2, out by3, out by4, out num, out num2);
            if (num == 1.0)
            {
                return(Season.PermanentSummer);
            }
            if (num2 == 1.0)
            {
                return(Season.PermanentWinter);
            }
            return(GenMath.MaxBy(Season.Spring, by, Season.Summer, by2, Season.Fall, by3, Season.Winter, by4));
        }