add GetActiveLocations to multiplayer API (#480)
This commit is contained in:
parent
591b1aca78
commit
418ff99ea3
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue