namespace StardewModdingAPI.Framework.Networking { internal class MultiplayerPeerMod : IMultiplayerPeerMod { /********* ** Accessors *********/ /// public string Name { get; } /// public string ID { get; } /// public ISemanticVersion Version { get; } /********* ** Public methods *********/ /// Construct an instance. /// The mod metadata. public MultiplayerPeerMod(RemoteContextModModel mod) { this.Name = mod.Name; this.ID = mod.ID?.Trim(); this.Version = mod.Version; } } }