summaryrefslogtreecommitdiff
path: root/src/SMAPI/Events/PlayerEvents.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-05-05 01:31:06 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-05-05 01:31:06 -0400
commitb8fd3aedfe884741bdda8c68398427f875585456 (patch)
tree12b6395923c930fa3155d4be2f38b1aa6e660217 /src/SMAPI/Events/PlayerEvents.cs
parenta65a49a62201cc897e73c265a0a808ef0baad002 (diff)
downloadSMAPI-b8fd3aedfe884741bdda8c68398427f875585456.tar.gz
SMAPI-b8fd3aedfe884741bdda8c68398427f875585456.tar.bz2
SMAPI-b8fd3aedfe884741bdda8c68398427f875585456.zip
rewrite location events for multiplayer
Diffstat (limited to 'src/SMAPI/Events/PlayerEvents.cs')
-rw-r--r--src/SMAPI/Events/PlayerEvents.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/SMAPI/Events/PlayerEvents.cs b/src/SMAPI/Events/PlayerEvents.cs
index 84a7ff63..6e7050e3 100644
--- a/src/SMAPI/Events/PlayerEvents.cs
+++ b/src/SMAPI/Events/PlayerEvents.cs
@@ -23,13 +23,21 @@ namespace StardewModdingAPI.Events
remove => PlayerEvents.EventManager.Player_InventoryChanged.Remove(value);
}
- /// <summary> Raised after the player levels up a skill. This happens as soon as they level up, not when the game notifies the player after their character goes to bed.</summary>
+ /// <summary>Raised after the player levels up a skill. This happens as soon as they level up, not when the game notifies the player after their character goes to bed.</summary>
public static event EventHandler<EventArgsLevelUp> LeveledUp
{
add => PlayerEvents.EventManager.Player_LeveledUp.Add(value);
remove => PlayerEvents.EventManager.Player_LeveledUp.Remove(value);
}
+ /// <summary>Raised after the player warps to a new location.</summary>
+ public static event EventHandler<EventArgsPlayerWarped> Warped
+ {
+ add => PlayerEvents.EventManager.Player_Warped.Add(value);
+ remove => PlayerEvents.EventManager.Player_Warped.Remove(value);
+ }
+
+
/*********
** Public methods