summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/IManifestDependency.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/StardewModdingAPI/IManifestDependency.cs')
-rw-r--r--src/StardewModdingAPI/IManifestDependency.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/StardewModdingAPI/IManifestDependency.cs b/src/StardewModdingAPI/IManifestDependency.cs
new file mode 100644
index 00000000..1fa6c812
--- /dev/null
+++ b/src/StardewModdingAPI/IManifestDependency.cs
@@ -0,0 +1,20 @@
+namespace StardewModdingAPI
+{
+ /// <summary>A mod dependency listed in a mod manifest.</summary>
+ public interface IManifestDependency
+ {
+ /*********
+ ** Accessors
+ *********/
+ /// <summary>The unique mod ID to require.</summary>
+ string UniqueID { get; }
+
+ /// <summary>The minimum required version (if any).</summary>
+ ISemanticVersion MinimumVersion { get; }
+
+#if !SMAPI_1_x
+ /// <summary>Whether the dependency must be installed to use the mod.</summary>
+ bool IsRequired { get; }
+#endif
+ }
+}