Ejemplo n.º 1
0
 /// <summary>
 /// Reattaches disabled delegates for previously disabled mods
 /// </summary>
 /// <param name="mod">The mod to reactivate</param>
 public static void ReactivateMod(Mod mod)
 {
     ReactivateMod(mod.ModSettings);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Forcibly deactivates a mod by detaching it's event listeners.
 /// </summary>
 /// <param name="mod">The mod to deactive</param>
 /// <param name="state">The new state of this mod. Defaults to ModState.Deactivated</param>
 /// <param name="error">The exception encountered causing the mod to be unloaded. Defaults to null</param>
 public static void DeactivateMod(Mod mod, ModState state = ModState.Deactivated, Exception error = null)
 {
     DeactivateMod(mod.ModSettings);
 }