diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-09-07 13:06:27 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-09-07 13:06:27 -0400 |
commit | 5e43bdbf5cd6dbab36c25287c85d42ccfeea2c83 (patch) | |
tree | 0a42305174eb84561a584549cd685c5e95670f36 /src/SMAPI/Framework/Networking | |
parent | 8da88b8fe5b41739c5cd0df3280b9770fc7f10a4 (diff) | |
parent | f9fac11028354f15d786d5b854608edb10716f79 (diff) | |
download | SMAPI-5e43bdbf5cd6dbab36c25287c85d42ccfeea2c83.tar.gz SMAPI-5e43bdbf5cd6dbab36c25287c85d42ccfeea2c83.tar.bz2 SMAPI-5e43bdbf5cd6dbab36c25287c85d42ccfeea2c83.zip |
Merge branch 'develop' into stable
Diffstat (limited to 'src/SMAPI/Framework/Networking')
-rw-r--r-- | src/SMAPI/Framework/Networking/MultiplayerPeer.cs | 18 | ||||
-rw-r--r-- | src/SMAPI/Framework/Networking/MultiplayerPeerMod.cs | 6 |
2 files changed, 11 insertions, 13 deletions
diff --git a/src/SMAPI/Framework/Networking/MultiplayerPeer.cs b/src/SMAPI/Framework/Networking/MultiplayerPeer.cs index 6b45b04a..5eda71f6 100644 --- a/src/SMAPI/Framework/Networking/MultiplayerPeer.cs +++ b/src/SMAPI/Framework/Networking/MultiplayerPeer.cs @@ -18,25 +18,25 @@ namespace StardewModdingAPI.Framework.Networking /********* ** Accessors *********/ - /// <summary>The player's unique ID.</summary> + /// <inheritdoc /> public long PlayerID { get; } - /// <summary>Whether this is a connection to the host player.</summary> + /// <inheritdoc /> public bool IsHost { get; } - /// <summary>Whether the player has SMAPI installed.</summary> + /// <inheritdoc /> public bool HasSmapi => this.ApiVersion != null; - /// <summary>The player's OS platform, if <see cref="HasSmapi"/> is true.</summary> + /// <inheritdoc /> public GamePlatform? Platform { get; } - /// <summary>The installed version of Stardew Valley, if <see cref="HasSmapi"/> is true.</summary> + /// <inheritdoc /> public ISemanticVersion GameVersion { get; } - /// <summary>The installed version of SMAPI, if <see cref="HasSmapi"/> is true.</summary> + /// <inheritdoc /> public ISemanticVersion ApiVersion { get; } - /// <summary>The installed mods, if <see cref="HasSmapi"/> is true.</summary> + /// <inheritdoc /> public IEnumerable<IMultiplayerPeerMod> Mods { get; } @@ -62,9 +62,7 @@ namespace StardewModdingAPI.Framework.Networking this.SendMessageImpl = sendMessage; } - /// <summary>Get metadata for a mod installed by the player.</summary> - /// <param name="id">The unique mod ID.</param> - /// <returns>Returns the mod info, or <c>null</c> if the player doesn't have that mod.</returns> + /// <inheritdoc /> public IMultiplayerPeerMod GetMod(string id) { if (string.IsNullOrWhiteSpace(id) || this.Mods == null || !this.Mods.Any()) diff --git a/src/SMAPI/Framework/Networking/MultiplayerPeerMod.cs b/src/SMAPI/Framework/Networking/MultiplayerPeerMod.cs index 1b324bcd..8087dc7e 100644 --- a/src/SMAPI/Framework/Networking/MultiplayerPeerMod.cs +++ b/src/SMAPI/Framework/Networking/MultiplayerPeerMod.cs @@ -5,13 +5,13 @@ namespace StardewModdingAPI.Framework.Networking /********* ** Accessors *********/ - /// <summary>The mod's display name.</summary> + /// <inheritdoc /> public string Name { get; } - /// <summary>The unique mod ID.</summary> + /// <inheritdoc /> public string ID { get; } - /// <summary>The mod version.</summary> + /// <inheritdoc /> public ISemanticVersion Version { get; } |