using System;
namespace StardewModdingAPI.Events
{
/// Event arguments for a field that changed value.
/// The value type.
public class EventArgsValueChanged : EventArgs
{
/*********
** Accessors
*********/
/// The previous value.
public T PriorValue { get; }
/// The current value.
public T NewValue { get; }
/*********
** Public methods
*********/
/// Construct an instance.
/// The previous value.
/// The current value.
public EventArgsValueChanged(T priorValue, T newValue)
{
this.PriorValue = priorValue;
this.NewValue = newValue;
}
}
}