using System;
namespace StardewModdingAPI.Events
{
/// Event arguments for an event.
public class TimeChangedEventArgs : EventArgs
{
/*********
** Accessors
*********/
/// The previous time of day in 24-hour notation (like 1600 for 4pm). The clock time resets when the player sleeps, so 2am (before sleeping) is 2600.
public int OldTime { get; }
/// The current time of day in 24-hour notation (like 1600 for 4pm). The clock time resets when the player sleeps, so 2am (before sleeping) is 2600.
public int NewTime { get; }
/*********
** Public methods
*********/
/// Construct an instance.
/// The previous time of day in 24-hour notation (like 1600 for 4pm).
/// The current time of day in 24-hour notation (like 1600 for 4pm).
internal TimeChangedEventArgs(int oldTime, int newTime)
{
this.OldTime = oldTime;
this.NewTime = newTime;
}
}
}