summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Framework/Models
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-09-23 19:15:07 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-09-23 19:15:07 -0400
commit873abef23563f5273e9b66d7b7e3cc2f5e4e0e92 (patch)
tree719f112605271149b2e75a1bd1d44a8b870e9fdc /src/StardewModdingAPI/Framework/Models
parente178ed14be24e3971d50addaebb3d13c19c18304 (diff)
downloadSMAPI-873abef23563f5273e9b66d7b7e3cc2f5e4e0e92.tar.gz
SMAPI-873abef23563f5273e9b66d7b7e3cc2f5e4e0e92.tar.bz2
SMAPI-873abef23563f5273e9b66d7b7e3cc2f5e4e0e92.zip
add mod update checks based on manifest fields (#336)
Diffstat (limited to 'src/StardewModdingAPI/Framework/Models')
-rw-r--r--src/StardewModdingAPI/Framework/Models/Manifest.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/StardewModdingAPI/Framework/Models/Manifest.cs b/src/StardewModdingAPI/Framework/Models/Manifest.cs
index 29c3517e..f97cb8ff 100644
--- a/src/StardewModdingAPI/Framework/Models/Manifest.cs
+++ b/src/StardewModdingAPI/Framework/Models/Manifest.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using StardewModdingAPI.Framework.Serialisation;
@@ -35,6 +35,14 @@ namespace StardewModdingAPI.Framework.Models
[JsonConverter(typeof(SFieldConverter))]
public IManifestDependency[] Dependencies { get; set; }
+#if !SMAPI_1_x
+ /// <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; }
+#endif
+
/// <summary>The unique mod ID.</summary>
public string UniqueID { get; set; }