diff options
Diffstat (limited to 'src/SMAPI/Framework/IModMetadata.cs')
-rw-r--r-- | src/SMAPI/Framework/IModMetadata.cs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/SMAPI/Framework/IModMetadata.cs b/src/SMAPI/Framework/IModMetadata.cs index 1a007297..85d1b619 100644 --- a/src/SMAPI/Framework/IModMetadata.cs +++ b/src/SMAPI/Framework/IModMetadata.cs @@ -1,6 +1,8 @@ +using System.Collections.Generic; using StardewModdingAPI.Framework.ModLoading; using StardewModdingAPI.Toolkit.Framework.Clients.WebApi; using StardewModdingAPI.Toolkit.Framework.ModData; +using StardewModdingAPI.Toolkit.Framework.UpdateData; namespace StardewModdingAPI.Framework { @@ -80,7 +82,11 @@ namespace StardewModdingAPI.Framework /// <summary>Whether the mod has an ID (regardless of whether the ID is valid or the mod itself was loaded).</summary> bool HasID(); - /// <summary>Whether the mod has at least one update key set.</summary> - bool HasUpdateKeys(); + /// <summary>Get the defined update keys.</summary> + /// <param name="validOnly">Only return valid update keys.</param> + IEnumerable<UpdateKey> GetUpdateKeys(bool validOnly = true); + + /// <summary>Whether the mod has at least one valid update key set.</summary> + bool HasValidUpdateKeys(); } } |