summaryrefslogtreecommitdiff
path: root/src/SMAPI/Events/ContentEvents.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI/Events/ContentEvents.cs')
-rw-r--r--src/SMAPI/Events/ContentEvents.cs45
1 files changed, 0 insertions, 45 deletions
diff --git a/src/SMAPI/Events/ContentEvents.cs b/src/SMAPI/Events/ContentEvents.cs
deleted file mode 100644
index aca76ef7..00000000
--- a/src/SMAPI/Events/ContentEvents.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-#if !SMAPI_3_0_STRICT
-using System;
-using StardewModdingAPI.Framework;
-using StardewModdingAPI.Framework.Events;
-
-namespace StardewModdingAPI.Events
-{
- /// <summary>Events raised when the game loads content.</summary>
- [Obsolete("Use " + nameof(Mod.Helper) + "." + nameof(IModHelper.Events) + " instead. See https://smapi.io/3.0 for more info.")]
- public static class ContentEvents
- {
- /*********
- ** Fields
- *********/
- /// <summary>The core event manager.</summary>
- private static EventManager EventManager;
-
-
- /*********
- ** Events
- *********/
- /// <summary>Raised after the content language changes.</summary>
- public static event EventHandler<EventArgsValueChanged<string>> AfterLocaleChanged
- {
- add
- {
- SCore.DeprecationManager.WarnForOldEvents();
- ContentEvents.EventManager.Legacy_LocaleChanged.Add(value);
- }
- remove => ContentEvents.EventManager.Legacy_LocaleChanged.Remove(value);
- }
-
-
- /*********
- ** Public methods
- *********/
- /// <summary>Initialise the events.</summary>
- /// <param name="eventManager">The core event manager.</param>
- internal static void Init(EventManager eventManager)
- {
- ContentEvents.EventManager = eventManager;
- }
- }
-}
-#endif