summaryrefslogtreecommitdiff
path: root/src/SMAPI/Events/EventArgsMineLevelChanged.cs
blob: c63b04e9a09587013eb1cea7865431cf15f99e83 (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
31
32
#if !SMAPI_3_0_STRICT
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;
        }
    }
}
#endif