summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Events/ModEventsBase.cs
blob: 545c58a8371e3cf92d6972c8c1ddce5215957e49 (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
    {
        /*********
        ** Properties
        *********/
        /// <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;
        }
    }
}