Method UnloadMissingMods
- Namespace
- GrindFest
- Assembly
- GrindFest.dll
UnloadMissingMods(List<ModDefinition>)
Delivers OnUnload() to every entry point whose mod is no longer in the active set (unsubscribed / folder removed during a live refresh) and drops its session state, so a later re-subscribe compiles and activates it fresh. Assemblies cannot be unloaded — code a removed mod scheduled elsewhere keeps running until the next boot.
public static int UnloadMissingMods(List<ModDefinition> activeMods)
Parameters
activeModsList<ModDefinition>
Returns
- int
How many mods were unloaded.