using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using StardewValley;
namespace Revitalize.Framework.Utilities
{
///
/// Deals with usefull utilities to help determine the weather and the effects it has.
///
public class WeatherUtilities
{
public static bool IsItRaining()
{
return Game1.isRaining;
}
public static bool IsItSnowing()
{
return Game1.isSnowing;
}
public static bool IsStorm()
{
return Game1.isLightning;
}
public static bool IsWedding()
{
return Game1.weddingToday;
}
public static bool IsSunny()
{
return Game1.weatherIcon == Game1.weather_sunny;
}
public static bool IsWindyDay()
{
return Game1.isDebrisWeather;
}
public static bool IsFestivalWeather()
{
return Game1.weatherIcon == Game1.weather_festival;
}
///
/// Checks if the weather for the day is good weather. Aka no rain or snow.
///
///
public static bool IsClearWeather()
{
return IsWindyDay() || IsSunny() || IsWedding() || IsFestivalWeather();
}
///
/// Checks if the weather for the day is unclear.
///
///
public static bool IsWetWeather()
{
return IsItRaining() || IsItSnowing() || IsStorm();
}
}
}