summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Events/EventArgsMineLevelChanged.cs
blob: c82fed358fe375de8ce91ea42d4f9d7e9adfbf0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;

namespace StardewModdingAPI.Events
{
    /// <summary>Event arguments for a <see cref="MineEvents.MineLevelChanged"/> event.</summary>
    public class EventArgsMineLevelChanged : EventArgs
    {
        /*********
        ** Accessors
        *********/
        /// <summary>The previous mine level.</summary>
        public int PreviousMineLevel { get; }

        /// <summary>The current mine level.</summary>
        public int CurrentMineLevel { get; }


        /*********
        ** Public methods
        *********/
        /// <summary>Construct an instance.</summary>
        /// <param name="previousMineLevel">The previous mine level.</param>
        /// <param name="currentMineLevel">The current mine level.</param>
        public EventArgsMineLevelChanged(int previousMineLevel, int currentMineLevel)
        {
            this.PreviousMineLevel = previousMineLevel;
            this.CurrentMineLevel = currentMineLevel;
        }
    }
}