diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-10-08 18:57:09 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-10-08 18:57:09 -0400 |
commit | ec6025aad35addab8121a31d1c4abf667fd5210a (patch) | |
tree | 5f7ea2836180adc1f26e05110f8f28ab18b61e8e /src/SMAPI/Events/IPlayerEvents.cs | |
parent | 79705448f57c962e9331fb802097c24d2424476c (diff) | |
download | SMAPI-ec6025aad35addab8121a31d1c4abf667fd5210a.tar.gz SMAPI-ec6025aad35addab8121a31d1c4abf667fd5210a.tar.bz2 SMAPI-ec6025aad35addab8121a31d1c4abf667fd5210a.zip |
add more events (#310)
Diffstat (limited to 'src/SMAPI/Events/IPlayerEvents.cs')
-rw-r--r-- | src/SMAPI/Events/IPlayerEvents.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/SMAPI/Events/IPlayerEvents.cs b/src/SMAPI/Events/IPlayerEvents.cs new file mode 100644 index 00000000..81e17b1a --- /dev/null +++ b/src/SMAPI/Events/IPlayerEvents.cs @@ -0,0 +1,17 @@ +using System; + +namespace StardewModdingAPI.Events +{ + /// <summary>Events raised when the player data changes.</summary> + public interface IPlayerEvents + { + /// <summary>Raised after items are added or removed to a player's inventory. NOTE: this event is currently only raised for the current player.</summary> + event EventHandler<InventoryChangedEventArgs> InventoryChanged; + + /// <summary>Raised after a player skill level changes. This happens as soon as they level up, not when the game notifies the player after their character goes to bed. NOTE: this event is currently only raised for the current player.</summary> + event EventHandler<LevelChangedEventArgs> LevelChanged; + + /// <summary>Raised after a player warps to a new location. NOTE: this event is currently only raised for the current player.</summary> + event EventHandler<WarpedEventArgs> Warped; + } +} |