summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Networking/RemoteContextModel.cs
blob: 7befb1515872800b99afccf387dadb0d496834f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
namespace StardewModdingAPI.Framework.Networking
{
    /// <summary>Metadata about the game, SMAPI, and installed mods exchanged with connected computers.</summary>
    internal class RemoteContextModel
    {
        /*********
        ** Accessors
        *********/
        /// <summary>Whether this player is the host player.</summary>
        public bool IsHost { get; set; }

        /// <summary>The game's platform version.</summary>
        public GamePlatform Platform { get; set; }

        /// <summary>The installed version of Stardew Valley.</summary>
        public ISemanticVersion GameVersion { get; set; }

        /// <summary>The installed version of SMAPI.</summary>
        public ISemanticVersion ApiVersion { get; set; }

        /// <summary>The installed mods.</summary>
        public RemoteContextModModel[] Mods { get; set; }
    }
}