diff --git a/MonkeyLoader/MonkeyLoader.cs b/MonkeyLoader/MonkeyLoader.cs index 255b3dc..1f565ed 100644 --- a/MonkeyLoader/MonkeyLoader.cs +++ b/MonkeyLoader/MonkeyLoader.cs @@ -592,6 +592,9 @@ public void RunMods(params Mod[] mods) LoadMonkeys(mods); RunMonkeys(mods); + + foreach (var mod in mods) + ModRan?.TryInvokeAll(this, mod); } /// @@ -925,6 +928,11 @@ private bool TryLoadMod(string path, [NotNullWhen(true)] out NuGetPackageMod? mo /// public event ModsChangedEventHandler? ModAdded; + /// + /// Called after a has been ran by this loader. + /// + public event ModsChangedEventHandler? ModRan; + /// /// Called after a has been shut down by this loader. /// diff --git a/MonkeyLoader/MonkeyLoader.csproj b/MonkeyLoader/MonkeyLoader.csproj index 04a7e37..c8fa89b 100644 --- a/MonkeyLoader/MonkeyLoader.csproj +++ b/MonkeyLoader/MonkeyLoader.csproj @@ -11,7 +11,7 @@ True MonkeyLoader Banane9 - 0.7.0-beta + 0.7.1-beta A convenience and extendability focused mod loader using NuGet packages. README.md LGPL-3.0-or-later