#if !SMAPI_3_0_STRICT using System; using StardewModdingAPI.Enums; namespace StardewModdingAPI.Events { /// Event arguments for a event. public class EventArgsLevelUp : EventArgs { /********* ** Accessors *********/ /// The player skill that leveled up. public LevelType Type { get; } /// The new skill level. public int NewLevel { get; } /// The player skill types. public enum LevelType { /// The combat skill. Combat = SkillType.Combat, /// The farming skill. Farming = SkillType.Farming, /// The fishing skill. Fishing = SkillType.Fishing, /// The foraging skill. Foraging = SkillType.Foraging, /// The mining skill. Mining = SkillType.Mining, /// The luck skill. Luck = SkillType.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; } } } #endif