using System; using StardewModdingAPI.Enums; using StardewValley; namespace StardewModdingAPI.Events { /// Event arguments for a event. public class LevelChangedEventArgs : EventArgs { /********* ** Accessors *********/ /// The player whose skill level changed. public Farmer Player { get; } /// The skill whose level changed. public SkillType Skill { get; } /// The previous skill level. public int OldLevel { get; } /// The new skill level. public int NewLevel { get; } /********* ** Public methods *********/ /// Construct an instance. /// The player whose skill level changed. /// The skill whose level changed. /// The previous skill level. /// The new skill level. internal LevelChangedEventArgs(Farmer player, SkillType skill, int oldLevel, int newLevel) { this.Player = player; this.Skill = skill; this.OldLevel = oldLevel; this.NewLevel = newLevel; } } }