using System; namespace StardewModdingAPI.Events { /// Event arguments for a event. public class EventArgsLevelUp : EventArgs { /********* ** Accessors *********/ /// The player skill that leveled up. public LevelType Type { get; private set; } /// The new skill level. public int NewLevel { get; private set; } /// The player skill types. public enum LevelType { /// The combat skill. Combat, /// The farming skill. Farming, /// The fishing skill. Fishing, /// The foraging skill. Foraging, /// The mining skill. Mining, /// The luck skill. Luck } /********* ** Public methods *********/ /// Construct an instance. /// The player skill that leveled up. /// The new skill level. public EventArgsLevelUp(LevelType type, int newLevel) { this.Type = type; this.NewLevel = newLevel; } } }