using System; namespace StardewModdingAPI.Events { /// Event arguments for a event. public class EventArgsNewDay : EventArgs { /********* ** Accessors *********/ /// The previous day value. public int PreviousDay { get; } /// The current day value. public int CurrentDay { get; } /// Whether the game just started the transition (true) or finished it (false). public bool IsNewDay { get; } /********* ** Public methods *********/ /// Construct an instance. /// The previous day value. /// The current day value. /// Whether the game just started the transition (true) or finished it (false). public EventArgsNewDay(int priorDay, int newDay, bool isTransitioning) { this.PreviousDay = priorDay; this.CurrentDay = newDay; this.IsNewDay = isTransitioning; } } }