Skip to content

Commit

Permalink
Add missing mod ran event
Browse files Browse the repository at this point in the history
  • Loading branch information
Banane9 committed Mar 10, 2024
1 parent 4263b80 commit 00e2990
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions MonkeyLoader/MonkeyLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,9 @@ public void RunMods(params Mod[] mods)

LoadMonkeys(mods);
RunMonkeys(mods);

foreach (var mod in mods)
ModRan?.TryInvokeAll(this, mod);
}

/// <summary>
Expand Down Expand Up @@ -925,6 +928,11 @@ private bool TryLoadMod(string path, [NotNullWhen(true)] out NuGetPackageMod? mo
/// </summary>
public event ModsChangedEventHandler? ModAdded;

/// <summary>
/// Called after a <see cref="Mod"/> has been <see cref="RunMod">ran</see> by this loader.
/// </summary>
public event ModsChangedEventHandler? ModRan;

/// <summary>
/// Called after a <see cref="Mod"/> has been <see cref="Mod.Shutdown">shut down</see> by this loader.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion MonkeyLoader/MonkeyLoader.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Title>MonkeyLoader</Title>
<Authors>Banane9</Authors>
<Version>0.7.0-beta</Version>
<Version>0.7.1-beta</Version>
<Description>A convenience and extendability focused mod loader using NuGet packages.</Description>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseExpression>LGPL-3.0-or-later</PackageLicenseExpression>
Expand Down

0 comments on commit 00e2990

Please sign in to comment.