summaryrefslogtreecommitdiff
path: root/src/SMAPI/Events/PeerDisconnectedEventArgs.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-11-04 23:07:10 -0500
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-11-04 23:07:10 -0500
commitb4a5b3829f0f738e5b7e05048068eaec9d2d01d1 (patch)
treea78c44e929ff1de70d20b012385c418aea7e78a6 /src/SMAPI/Events/PeerDisconnectedEventArgs.cs
parent222265816d803e8e145c0a500568412d03dd49da (diff)
downloadSMAPI-b4a5b3829f0f738e5b7e05048068eaec9d2d01d1.tar.gz
SMAPI-b4a5b3829f0f738e5b7e05048068eaec9d2d01d1.tar.bz2
SMAPI-b4a5b3829f0f738e5b7e05048068eaec9d2d01d1.zip
add PeerDisconnected event (#480)
Diffstat (limited to 'src/SMAPI/Events/PeerDisconnectedEventArgs.cs')
-rw-r--r--src/SMAPI/Events/PeerDisconnectedEventArgs.cs25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/SMAPI/Events/PeerDisconnectedEventArgs.cs b/src/SMAPI/Events/PeerDisconnectedEventArgs.cs
new file mode 100644
index 00000000..8517988a
--- /dev/null
+++ b/src/SMAPI/Events/PeerDisconnectedEventArgs.cs
@@ -0,0 +1,25 @@
+using System;
+
+namespace StardewModdingAPI.Events
+{
+ /// <summary>Event arguments for an <see cref="IMultiplayerEvents.PeerDisconnected"/> event.</summary>
+ public class PeerDisconnectedEventArgs : EventArgs
+ {
+ /*********
+ ** Accessors
+ *********/
+ /// <summary>The peer who disconnected.</summary>
+ public IMultiplayerPeer Peer { get; }
+
+
+ /*********
+ ** Public methods
+ *********/
+ /// <summary>Construct an instance.</summary>
+ /// <param name="peer">The peer who disconnected.</param>
+ internal PeerDisconnectedEventArgs(IMultiplayerPeer peer)
+ {
+ this.Peer = peer;
+ }
+ }
+}