add GetActiveLocations to multiplayer API (#480)

This commit is contained in:
Jesse Plamondon-Willard 2018-05-06 21:00:35 -04:00
parent 591b1aca78
commit 418ff99ea3
1 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,6 @@
using System.Collections.Generic;
using StardewValley;
namespace StardewModdingAPI.Framework.ModHelpers namespace StardewModdingAPI.Framework.ModHelpers
{ {
/// <summary>Provides multiplayer utilities.</summary> /// <summary>Provides multiplayer utilities.</summary>
@ -22,6 +25,12 @@ namespace StardewModdingAPI.Framework.ModHelpers
this.Multiplayer = multiplayer; 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> /// <summary>Get a new multiplayer ID.</summary>
public long GetNewID() public long GetNewID()
{ {