diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-06-27 00:55:45 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-06-27 00:55:45 -0400 |
commit | 9f7b4e029668ccb7b05fb8b5b02b7a3998b05a80 (patch) | |
tree | a3262e8bc3fa3045fcca22dfc54005e654715235 /src/StardewModdingAPI.Toolkit/Framework/ModData/ModDatabase.cs | |
parent | b86a63015de6186b5f97cb868558c1550facb750 (diff) | |
download | SMAPI-9f7b4e029668ccb7b05fb8b5b02b7a3998b05a80.tar.gz SMAPI-9f7b4e029668ccb7b05fb8b5b02b7a3998b05a80.tar.bz2 SMAPI-9f7b4e029668ccb7b05fb8b5b02b7a3998b05a80.zip |
add method to get all data records (#532)
Diffstat (limited to 'src/StardewModdingAPI.Toolkit/Framework/ModData/ModDatabase.cs')
-rw-r--r-- | src/StardewModdingAPI.Toolkit/Framework/ModData/ModDatabase.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/StardewModdingAPI.Toolkit/Framework/ModData/ModDatabase.cs b/src/StardewModdingAPI.Toolkit/Framework/ModData/ModDatabase.cs index a12e3c67..3b98bcf1 100644 --- a/src/StardewModdingAPI.Toolkit/Framework/ModData/ModDatabase.cs +++ b/src/StardewModdingAPI.Toolkit/Framework/ModData/ModDatabase.cs @@ -33,6 +33,12 @@ namespace StardewModdingAPI.Toolkit.Framework.ModData this.GetUpdateUrl = getUpdateUrl; } + /// <summary>Get all mod data records.</summary> + public IEnumerable<ModDataRecord> GetAll() + { + return this.Records; + } + /// <summary>Get a mod data record.</summary> /// <param name="modID">The unique mod ID.</param> public ModDataRecord Get(string modID) |