/// <summary>The mod entry point, called after the mod is first loaded.</summary> /// <param name="helper">Provides simplified APIs for writing mods.</param> public override void Entry(IModHelper helper) { // Safe Lightning initialization. Sets up console commands, lightning detectors and resolvers, and subscribes to events. Instance = this; new CommandParser(this); HarmonyInstance instance = HarmonyInstance.Create("cat.safelightning"); instance.PatchAll(Assembly.GetExecutingAssembly()); }
/// <summary> /// Safe Lightning initialization. Sets up console commands, lightning detectors and resolvers, and subscribes to /// events. /// </summary> /// <param name="helper">The mod helper</param> public override void Entry(IModHelper helper) { Instance = this; new CommandParser(this); HarmonyInstance instance = HarmonyInstance.Create("cat.safelightning"); instance.PatchAll(Assembly.GetExecutingAssembly()); }
private static bool Prefix() { SafeLightningMod.StrikeLightningSafely(); return(false); }