using System;
namespace StardewModdingAPI.Events
{
/// Event arguments for a event.
public class EventArgsNewDay : EventArgs
{
/*********
** Accessors
*********/
/// The previous day value.
public int PreviousDay { get; private set; }
/// The current day value.
public int CurrentDay { get; private set; }
/// Whether the game just started the transition (true) or finished it (false).
public bool IsNewDay { get; private set; }
/*********
** 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;
}
}
}