using System.Collections.Generic;
namespace StardewModdingAPI
{
/// Metadata about a connected player.
public interface IMultiplayerPeer
{
/*********
** Accessors
*********/
/// The player's unique ID.
long PlayerID { get; }
/// Whether this is a connection to the host player.
bool IsHost { get; }
/// Whether the player has SMAPI installed.
bool HasSmapi { get; }
/// The player's OS platform, if is true.
GamePlatform? Platform { get; }
/// The installed version of Stardew Valley, if is true.
ISemanticVersion GameVersion { get; }
/// The installed version of SMAPI, if is true.
ISemanticVersion ApiVersion { get; }
/// The installed mods, if is true.
IEnumerable Mods { get; }
/*********
** Methods
*********/
/// Get metadata for a mod installed by the player.
/// The unique mod ID.
/// Returns the mod info, or null if the player doesn't have that mod.
IMultiplayerPeerMod GetMod(string id);
}
}