diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-11-04 21:34:48 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-11-04 21:34:48 -0500 |
commit | bfb40202793f2f7f2c9c73272f01a477b23edfa2 (patch) | |
tree | 485dda7f78e988bb5e0ecd605cbcb708831249d9 /src/SMAPI/Framework/Networking/MultiplayerPeer.cs | |
parent | 02a46bf13f29ce0dd8ac2f422113083c59dae42d (diff) | |
download | SMAPI-bfb40202793f2f7f2c9c73272f01a477b23edfa2.tar.gz SMAPI-bfb40202793f2f7f2c9c73272f01a477b23edfa2.tar.bz2 SMAPI-bfb40202793f2f7f2c9c73272f01a477b23edfa2.zip |
rewrite multiplayer sync to use generic callbacks from client/server for better extensibility (#480)
Diffstat (limited to 'src/SMAPI/Framework/Networking/MultiplayerPeer.cs')
-rw-r--r-- | src/SMAPI/Framework/Networking/MultiplayerPeer.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/SMAPI/Framework/Networking/MultiplayerPeer.cs b/src/SMAPI/Framework/Networking/MultiplayerPeer.cs index c7f8ffad..e703dbb1 100644 --- a/src/SMAPI/Framework/Networking/MultiplayerPeer.cs +++ b/src/SMAPI/Framework/Networking/MultiplayerPeer.cs @@ -2,7 +2,6 @@ using System; using System.Collections.Generic; using System.Linq; using Lidgren.Network; -using StardewValley; using StardewValley.Network; namespace StardewModdingAPI.Framework.Networking @@ -95,7 +94,8 @@ namespace StardewModdingAPI.Framework.Networking /// <param name="playerID">The player's unique ID.</param> /// <param name="model">The metadata to copy.</param> /// <param name="client">The client through which to send messages.</param> - public static MultiplayerPeer ForConnectionToHost(long playerID, RemoteContextModel model, SLidgrenClient client) + /// <param name="isHost">Whether this connection is for the host player.</param> + public static MultiplayerPeer ForConnectionToHost(long playerID, RemoteContextModel model, SLidgrenClient client, bool isHost) { return new MultiplayerPeer( playerID: playerID, @@ -103,7 +103,7 @@ namespace StardewModdingAPI.Framework.Networking server: null, serverConnection: null, client: client, - isHost: true + isHost: isHost ); } |