diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-01-19 12:23:40 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-01-19 12:23:40 -0500 |
commit | e9cb691251668af87f25549fdedaf382e820075f (patch) | |
tree | 4050e29fc79c54877de5d2ecf905a5befcd512e2 /src/StardewModdingAPI/IModRegistry.cs | |
parent | 6adf199987a506f8a65f6c1ddfad5aa9fa2a6a9f (diff) | |
parent | b90387668d5fee2ebf67d730dbb3aa8cec6a5b67 (diff) | |
download | SMAPI-e9cb691251668af87f25549fdedaf382e820075f.tar.gz SMAPI-e9cb691251668af87f25549fdedaf382e820075f.tar.bz2 SMAPI-e9cb691251668af87f25549fdedaf382e820075f.zip |
Merge branch 'develop' into stable
Diffstat (limited to 'src/StardewModdingAPI/IModRegistry.cs')
-rw-r--r-- | src/StardewModdingAPI/IModRegistry.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/StardewModdingAPI/IModRegistry.cs b/src/StardewModdingAPI/IModRegistry.cs new file mode 100644 index 00000000..676c9734 --- /dev/null +++ b/src/StardewModdingAPI/IModRegistry.cs @@ -0,0 +1,20 @@ +using System.Collections.Generic; + +namespace StardewModdingAPI +{ + /// <summary>Provides metadata about loaded mods.</summary> + public interface IModRegistry + { + /// <summary>Get metadata for all loaded mods.</summary> + IEnumerable<IManifest> GetAll(); + + /// <summary>Get metadata for a loaded mod.</summary> + /// <param name="uniqueID">The mod's unique ID.</param> + /// <returns>Returns the matching mod's metadata, or <c>null</c> if not found.</returns> + IManifest Get(string uniqueID); + + /// <summary>Get whether a mod has been loaded.</summary> + /// <param name="uniqueID">The mod's unique ID.</param> + bool IsLoaded(string uniqueID); + } +}
\ No newline at end of file |