summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Events/EventArgsMineLevelChanged.cs
blob: a02921d2ca41834975ebff844a82dcdfa790485a (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; private set; }

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


        /*********
        ** 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;
        }
    }
}