summaryrefslogtreecommitdiff
path: root/src/SMAPI/Events/LoadStageChangedEventArgs.cs
blob: 3529dcf384ce7304f6bb578cdf85f9477abcd701 (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
using System;
using StardewModdingAPI.Enums;

namespace StardewModdingAPI.Events
{
    /// <summary>Event arguments for an <see cref="ISpecializedEvents.LoadStageChanged"/> event.</summary>
    public class LoadStageChangedEventArgs : EventArgs
    {
        /*********
        ** Accessors
        *********/
        /// <summary>The previous load stage.</summary>
        public LoadStage OldStage { get; }

        /// <summary>The new load stage.</summary>
        public LoadStage NewStage { get; }


        /*********
        ** Public methods
        *********/
        /// <summary>Construct an instance.</summary>
        /// <param name="old">The previous load stage.</param>
        /// <param name="current">The new load stage.</param>
        public LoadStageChangedEventArgs(LoadStage old, LoadStage current)
        {
            this.OldStage = old;
            this.NewStage = current;
        }
    }
}