summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Networking/RemoteContextModel.cs
blob: 37fafa67d29e52d585819a883eaa51f6d9056613 (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
25
26
#nullable disable

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; }
    }
}