public bool ContainsCondition(CurrentWeather cond) { if (CurrentConditionsN.HasFlag(cond)) { return true; } return false; }
/// <summary> Syntatic Sugar for Enum.HasFlag(). Done so if I choose to rewrite how it's accessed, less rewriting of invoking functions is needed. </summary> /// <param name="checkWeather">The weather being checked.</param> /// <returns>If the weather is present</returns> public bool HasWeather(CurrentWeather checkWeather) { return CurrentConditionsN.HasFlag(checkWeather); }