Esempio n. 1
0
    public static float GetDefaultWeight(RuleWeather weather)
    {
        if (weather == RuleWeather.Storm)
        {
            return(0.25f);
        }

        if (weather == RuleWeather.Festival)
        {
            return(0f);
        }

        return(1f);
    }
Esempio n. 2
0
 public RulePatternEntry(RuleWeather weather, float weight)
 {
     Weather = weather;
     Weight  = weight;
 }