summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2018-05-06 21:00:35 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2018-05-06 21:00:35 -0400
commit418ff99ea3b4d06432182b147d0637cce5eb0bae (patch)
tree1ec4253700e554381d48b9a53a1399874acd57fe /src
parent591b1aca780b4460c7845534eb624697025b891e (diff)
downloadSMAPI-418ff99ea3b4d06432182b147d0637cce5eb0bae.tar.gz
SMAPI-418ff99ea3b4d06432182b147d0637cce5eb0bae.tar.bz2
SMAPI-418ff99ea3b4d06432182b147d0637cce5eb0bae.zip
add GetActiveLocations to multiplayer API (#480)
Diffstat (limited to 'src')
-rw-r--r--src/SMAPI/Framework/ModHelpers/MultiplayerHelper.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/ModHelpers/MultiplayerHelper.cs b/src/SMAPI/Framework/ModHelpers/MultiplayerHelper.cs
index 7a8da1d0..c449a51b 100644
--- a/src/SMAPI/Framework/ModHelpers/MultiplayerHelper.cs
+++ b/src/SMAPI/Framework/ModHelpers/MultiplayerHelper.cs
@@ -1,3 +1,6 @@
+using System.Collections.Generic;
+using StardewValley;
+
namespace StardewModdingAPI.Framework.ModHelpers
{
/// <summary>Provides multiplayer utilities.</summary>
@@ -22,6 +25,12 @@ namespace StardewModdingAPI.Framework.ModHelpers
this.Multiplayer = multiplayer;
}
+ /// <summary>Get the locations which are being actively synced from the host.</summary>
+ public IEnumerable<GameLocation> GetActiveLocations()
+ {
+ return this.Multiplayer.activeLocations();
+ }
+
/// <summary>Get a new multiplayer ID.</summary>
public long GetNewID()
{