diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2018-12-13 02:00:30 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2018-12-13 02:00:30 -0500 |
commit | 6045351395f6b74846a2b18b131f662b88641569 (patch) | |
tree | 79dd58dd038c482b3890afc238e708c1b2224436 /src/SMAPI/Events/SpecialisedEvents.cs | |
parent | 11787f9fea35ee8597c8a4c028b9c3be42751463 (diff) | |
download | SMAPI-6045351395f6b74846a2b18b131f662b88641569.tar.gz SMAPI-6045351395f6b74846a2b18b131f662b88641569.tar.bz2 SMAPI-6045351395f6b74846a2b18b131f662b88641569.zip |
simplify access to deprecation manager for deprecation warnings
Diffstat (limited to 'src/SMAPI/Events/SpecialisedEvents.cs')
-rw-r--r-- | src/SMAPI/Events/SpecialisedEvents.cs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/SMAPI/Events/SpecialisedEvents.cs b/src/SMAPI/Events/SpecialisedEvents.cs index 0dd726e9..2c6d0230 100644 --- a/src/SMAPI/Events/SpecialisedEvents.cs +++ b/src/SMAPI/Events/SpecialisedEvents.cs @@ -15,9 +15,6 @@ namespace StardewModdingAPI.Events /// <summary>The core event manager.</summary> private static EventManager EventManager; - /// <summary>Manages deprecation warnings.</summary> - private static DeprecationManager DeprecationManager; - /********* ** Events @@ -27,7 +24,7 @@ namespace StardewModdingAPI.Events { add { - SpecialisedEvents.DeprecationManager.WarnForOldEvents(); + SCore.DeprecationManager.WarnForOldEvents(); SpecialisedEvents.EventManager.Legacy_UnvalidatedUpdateTick.Add(value); } remove => SpecialisedEvents.EventManager.Legacy_UnvalidatedUpdateTick.Remove(value); @@ -39,11 +36,9 @@ namespace StardewModdingAPI.Events *********/ /// <summary>Initialise the events.</summary> /// <param name="eventManager">The core event manager.</param> - /// <param name="deprecationManager">Manages deprecation warnings.</param> - internal static void Init(EventManager eventManager, DeprecationManager deprecationManager) + internal static void Init(EventManager eventManager) { SpecialisedEvents.EventManager = eventManager; - SpecialisedEvents.DeprecationManager = deprecationManager; } } } |