summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Events/ModEventsBase.cs
blob: 77708fc100343506fd04065561a5153db98f0c6a (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
namespace StardewModdingAPI.Framework.Events
{
    /// <summary>An internal base class for event API classes.</summary>
    internal abstract class ModEventsBase
    {
        /*********
        ** Fields
        *********/
        /// <summary>The underlying event manager.</summary>
        protected readonly EventManager EventManager;

        /// <summary>The mod which uses this instance.</summary>
        protected readonly IModMetadata Mod;


        /*********
        ** Public methods
        *********/
        /// <summary>Construct an instance.</summary>
        /// <param name="mod">The mod which uses this instance.</param>
        /// <param name="eventManager">The underlying event manager.</param>
        internal ModEventsBase(IModMetadata mod, EventManager eventManager)
        {
            this.Mod = mod;
            this.EventManager = eventManager;
        }
    }
}