summaryrefslogtreecommitdiff
path: root/src/SMAPI/Events/LocationEvents.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI/Events/LocationEvents.cs')
-rw-r--r--src/SMAPI/Events/LocationEvents.cs67
1 files changed, 0 insertions, 67 deletions
diff --git a/src/SMAPI/Events/LocationEvents.cs b/src/SMAPI/Events/LocationEvents.cs
deleted file mode 100644
index 0761bdd8..00000000
--- a/src/SMAPI/Events/LocationEvents.cs
+++ /dev/null
@@ -1,67 +0,0 @@
-#if !SMAPI_3_0_STRICT
-using System;
-using StardewModdingAPI.Framework;
-using StardewModdingAPI.Framework.Events;
-
-namespace StardewModdingAPI.Events
-{
- /// <summary>Events raised when the player transitions between game locations, a location is added or removed, or the objects in the current location change.</summary>
- [Obsolete("Use " + nameof(Mod.Helper) + "." + nameof(IModHelper.Events) + " instead. See https://smapi.io/3.0 for more info.")]
- public static class LocationEvents
- {
- /*********
- ** Fields
- *********/
- /// <summary>The core event manager.</summary>
- private static EventManager EventManager;
-
-
- /*********
- ** Events
- *********/
- /// <summary>Raised after a game location is added or removed.</summary>
- public static event EventHandler<EventArgsLocationsChanged> LocationsChanged
- {
- add
- {
- SCore.DeprecationManager.WarnForOldEvents();
- LocationEvents.EventManager.Legacy_LocationsChanged.Add(value);
- }
- remove => LocationEvents.EventManager.Legacy_LocationsChanged.Remove(value);
- }
-
- /// <summary>Raised after buildings are added or removed in a location.</summary>
- public static event EventHandler<EventArgsLocationBuildingsChanged> BuildingsChanged
- {
- add
- {
- SCore.DeprecationManager.WarnForOldEvents();
- LocationEvents.EventManager.Legacy_BuildingsChanged.Add(value);
- }
- remove => LocationEvents.EventManager.Legacy_BuildingsChanged.Remove(value);
- }
-
- /// <summary>Raised after objects are added or removed in a location.</summary>
- public static event EventHandler<EventArgsLocationObjectsChanged> ObjectsChanged
- {
- add
- {
- SCore.DeprecationManager.WarnForOldEvents();
- LocationEvents.EventManager.Legacy_ObjectsChanged.Add(value);
- }
- remove => LocationEvents.EventManager.Legacy_ObjectsChanged.Remove(value);
- }
-
-
- /*********
- ** Public methods
- *********/
- /// <summary>Initialise the events.</summary>
- /// <param name="eventManager">The core event manager.</param>
- internal static void Init(EventManager eventManager)
- {
- LocationEvents.EventManager = eventManager;
- }
- }
-}
-#endif