private static bool FitsTime(WeatherObject weatherObject, int time) { return(weatherObject.GetTimeDiapason()?.Contains(time) ?? PatchHelper.ClampTime(time) == time); }
private static bool FitsTime(WeatherObject weatherObject, int time) { return(weatherObject.GetTimeDiapason()?.Contains(time) ?? time >= CommonAcConsts.TimeMinimum && time <= CommonAcConsts.TimeMaximum); }