diff options
Diffstat (limited to 'src/StardewModdingAPI/Framework/Models')
-rw-r--r-- | src/StardewModdingAPI/Framework/Models/Manifest.cs | 10 | ||||
-rw-r--r-- | src/StardewModdingAPI/Framework/Models/ModDataDefaults.cs | 18 | ||||
-rw-r--r-- | src/StardewModdingAPI/Framework/Models/ModDataRecord.cs | 4 |
3 files changed, 4 insertions, 28 deletions
diff --git a/src/StardewModdingAPI/Framework/Models/Manifest.cs b/src/StardewModdingAPI/Framework/Models/Manifest.cs index c891644f..a051354c 100644 --- a/src/StardewModdingAPI/Framework/Models/Manifest.cs +++ b/src/StardewModdingAPI/Framework/Models/Manifest.cs @@ -34,14 +34,8 @@ namespace StardewModdingAPI.Framework.Models [JsonConverter(typeof(SFieldConverter))] public IManifestDependency[] Dependencies { get; set; } - /// <summary>The mod's unique ID in the Chucklefish mod site (if any), used for update checks.</summary> - public string ChucklefishID { get; set; } - - /// <summary>The mod's unique ID in Nexus Mods (if any), used for update checks.</summary> - public string NexusID { get; set; } - - /// <summary>The mod's organisation and project name on GitHub (if any), used for update checks.</summary> - public string GitHubProject { get; set; } + /// <summary>The namespaced mod IDs to query for updates (like <c>Nexus:541</c>).</summary> + public string[] UpdateKeys { get; set; } /// <summary>The unique mod ID.</summary> public string UniqueID { get; set; } diff --git a/src/StardewModdingAPI/Framework/Models/ModDataDefaults.cs b/src/StardewModdingAPI/Framework/Models/ModDataDefaults.cs deleted file mode 100644 index e0ab94b8..00000000 --- a/src/StardewModdingAPI/Framework/Models/ModDataDefaults.cs +++ /dev/null @@ -1,18 +0,0 @@ -namespace StardewModdingAPI.Framework.Models -{ - /// <summary>Default values for support fields to inject into the manifest.</summary> - internal class ModDataDefaults - { - /********* - ** Accessors - *********/ - /// <summary>The mod's unique ID in the Chucklefish mod site (if any), used for update checks.</summary> - public string ChucklefishID { get; set; } - - /// <summary>The mod's unique ID in Nexus Mods (if any), used for update checks.</summary> - public string NexusID { get; set; } - - /// <summary>The mod's organisation and project name on GitHub (if any), used for update checks.</summary> - public string GitHubProject { get; set; } - } -} diff --git a/src/StardewModdingAPI/Framework/Models/ModDataRecord.cs b/src/StardewModdingAPI/Framework/Models/ModDataRecord.cs index 0d033e82..c6a12188 100644 --- a/src/StardewModdingAPI/Framework/Models/ModDataRecord.cs +++ b/src/StardewModdingAPI/Framework/Models/ModDataRecord.cs @@ -15,8 +15,8 @@ namespace StardewModdingAPI.Framework.Models [JsonConverter(typeof(SFieldConverter))] public ModDataID ID { get; set; } - /// <summary>Default values for support fields to inject into the manifest.</summary> - public ModDataDefaults Defaults { get; set; } + /// <summary>A value to inject into <see cref="IManifest.UpdateKeys"/> field if it's not already set.</summary> + public string[] UpdateKeys { get; set; } /// <summary>The URL where the player can get an unofficial or alternative version of the mod if the official version isn't compatible.</summary> public string AlternativeUrl { get; set; } |