public static float GetDefaultWeight(RuleWeather weather) { if (weather == RuleWeather.Storm) { return(0.25f); } if (weather == RuleWeather.Festival) { return(0f); } return(1f); }
public RulePatternEntry(RuleWeather weather, float weight) { Weather = weather; Weight = weight; }