diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-06-01 01:15:26 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-06-01 01:15:26 -0400 |
commit | cca7bf197079975bf310ca90c03b78d0f77fdf02 (patch) | |
tree | 241c01950abf2e1c66178f47092f6b364adb50c6 /src/SMAPI/Events | |
parent | 558fb8a865b638cf5536856e7dcab44823feeaf3 (diff) | |
download | SMAPI-cca7bf197079975bf310ca90c03b78d0f77fdf02.tar.gz SMAPI-cca7bf197079975bf310ca90c03b78d0f77fdf02.tar.bz2 SMAPI-cca7bf197079975bf310ca90c03b78d0f77fdf02.zip |
rename new events for clarity (#310)
Diffstat (limited to 'src/SMAPI/Events')
-rw-r--r-- | src/SMAPI/Events/IWorldEvents.cs | 6 | ||||
-rw-r--r-- | src/SMAPI/Events/WorldBuildingListChangedEventArgs.cs (renamed from src/SMAPI/Events/WorldBuildingsChangedEventArgs.cs) | 6 | ||||
-rw-r--r-- | src/SMAPI/Events/WorldLocationListChangedEventArgs.cs (renamed from src/SMAPI/Events/WorldLocationsChangedEventArgs.cs) | 6 | ||||
-rw-r--r-- | src/SMAPI/Events/WorldObjectListChangedEventArgs.cs (renamed from src/SMAPI/Events/WorldObjectsChangedEventArgs.cs) | 6 |
4 files changed, 12 insertions, 12 deletions
diff --git a/src/SMAPI/Events/IWorldEvents.cs b/src/SMAPI/Events/IWorldEvents.cs index 5c713250..a9a5fe6b 100644 --- a/src/SMAPI/Events/IWorldEvents.cs +++ b/src/SMAPI/Events/IWorldEvents.cs @@ -9,12 +9,12 @@ namespace StardewModdingAPI.Events ** Events *********/ /// <summary>Raised after a game location is added or removed.</summary> - event EventHandler<WorldLocationsChangedEventArgs> LocationsChanged; + event EventHandler<WorldLocationListChangedEventArgs> LocationListChanged; /// <summary>Raised after buildings are added or removed in a location.</summary> - event EventHandler<WorldBuildingsChangedEventArgs> BuildingsChanged; + event EventHandler<WorldBuildingListChangedEventArgs> BuildingListChanged; /// <summary>Raised after objects are added or removed in a location.</summary> - event EventHandler<WorldObjectsChangedEventArgs> ObjectsChanged; + event EventHandler<WorldObjectListChangedEventArgs> ObjectListChanged; } } diff --git a/src/SMAPI/Events/WorldBuildingsChangedEventArgs.cs b/src/SMAPI/Events/WorldBuildingListChangedEventArgs.cs index 1f68fd02..e73b9396 100644 --- a/src/SMAPI/Events/WorldBuildingsChangedEventArgs.cs +++ b/src/SMAPI/Events/WorldBuildingListChangedEventArgs.cs @@ -6,8 +6,8 @@ using StardewValley.Buildings; namespace StardewModdingAPI.Events { - /// <summary>Event arguments for a <see cref="IWorldEvents.BuildingsChanged"/> event.</summary> - public class WorldBuildingsChangedEventArgs : EventArgs + /// <summary>Event arguments for a <see cref="IWorldEvents.BuildingListChanged"/> event.</summary> + public class WorldBuildingListChangedEventArgs : EventArgs { /********* ** Accessors @@ -29,7 +29,7 @@ namespace StardewModdingAPI.Events /// <param name="location">The location which changed.</param> /// <param name="added">The buildings added to the location.</param> /// <param name="removed">The buildings removed from the location.</param> - public WorldBuildingsChangedEventArgs(GameLocation location, IEnumerable<Building> added, IEnumerable<Building> removed) + public WorldBuildingListChangedEventArgs(GameLocation location, IEnumerable<Building> added, IEnumerable<Building> removed) { this.Location = location; this.Added = added.ToArray(); diff --git a/src/SMAPI/Events/WorldLocationsChangedEventArgs.cs b/src/SMAPI/Events/WorldLocationListChangedEventArgs.cs index 5cf77959..8bc26a43 100644 --- a/src/SMAPI/Events/WorldLocationsChangedEventArgs.cs +++ b/src/SMAPI/Events/WorldLocationListChangedEventArgs.cs @@ -5,8 +5,8 @@ using StardewValley; namespace StardewModdingAPI.Events { - /// <summary>Event arguments for a <see cref="IWorldEvents.LocationsChanged"/> event.</summary> - public class WorldLocationsChangedEventArgs : EventArgs + /// <summary>Event arguments for a <see cref="IWorldEvents.LocationListChanged"/> event.</summary> + public class WorldLocationListChangedEventArgs : EventArgs { /********* ** Accessors @@ -24,7 +24,7 @@ namespace StardewModdingAPI.Events /// <summary>Construct an instance.</summary> /// <param name="added">The added locations.</param> /// <param name="removed">The removed locations.</param> - public WorldLocationsChangedEventArgs(IEnumerable<GameLocation> added, IEnumerable<GameLocation> removed) + public WorldLocationListChangedEventArgs(IEnumerable<GameLocation> added, IEnumerable<GameLocation> removed) { this.Added = added.ToArray(); this.Removed = removed.ToArray(); diff --git a/src/SMAPI/Events/WorldObjectsChangedEventArgs.cs b/src/SMAPI/Events/WorldObjectListChangedEventArgs.cs index fb20acd4..5623a49b 100644 --- a/src/SMAPI/Events/WorldObjectsChangedEventArgs.cs +++ b/src/SMAPI/Events/WorldObjectListChangedEventArgs.cs @@ -7,8 +7,8 @@ using Object = StardewValley.Object; namespace StardewModdingAPI.Events { - /// <summary>Event arguments for a <see cref="IWorldEvents.ObjectsChanged"/> event.</summary> - public class WorldObjectsChangedEventArgs : EventArgs + /// <summary>Event arguments for a <see cref="IWorldEvents.ObjectListChanged"/> event.</summary> + public class WorldObjectListChangedEventArgs : EventArgs { /********* ** Accessors @@ -30,7 +30,7 @@ namespace StardewModdingAPI.Events /// <param name="location">The location which changed.</param> /// <param name="added">The objects added to the location.</param> /// <param name="removed">The objects removed from the location.</param> - public WorldObjectsChangedEventArgs(GameLocation location, IEnumerable<KeyValuePair<Vector2, Object>> added, IEnumerable<KeyValuePair<Vector2, Object>> removed) + public WorldObjectListChangedEventArgs(GameLocation location, IEnumerable<KeyValuePair<Vector2, Object>> added, IEnumerable<KeyValuePair<Vector2, Object>> removed) { this.Location = location; this.Added = added.ToArray(); |