From 929dccb75a1405737975d76648e015a3e7c00177 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sat, 7 Oct 2017 23:07:10 -0400 Subject: reorganise repo structure --- src/SMAPI/IModRegistry.cs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/SMAPI/IModRegistry.cs (limited to 'src/SMAPI/IModRegistry.cs') diff --git a/src/SMAPI/IModRegistry.cs b/src/SMAPI/IModRegistry.cs new file mode 100644 index 00000000..5ef3fd65 --- /dev/null +++ b/src/SMAPI/IModRegistry.cs @@ -0,0 +1,20 @@ +using System.Collections.Generic; + +namespace StardewModdingAPI +{ + /// Provides an API for fetching metadata about loaded mods. + public interface IModRegistry : IModLinked + { + /// Get metadata for all loaded mods. + IEnumerable GetAll(); + + /// Get metadata for a loaded mod. + /// The mod's unique ID. + /// Returns the matching mod's metadata, or null if not found. + IManifest Get(string uniqueID); + + /// Get whether a mod has been loaded. + /// The mod's unique ID. + bool IsLoaded(string uniqueID); + } +} \ No newline at end of file -- cgit