Files
7d2dXG/Mods/0B-FullautoLauncher/Harmony/Init.cs
Nathaniel Cosford 062dfab2cd Patched
2025-05-30 01:04:40 +09:30

22 lines
560 B
C#

using FullautoLauncher.Scripts.ProjectileManager;
using System.Reflection;
public class FullautoLauncherInit : IModApi
{
private static bool inited = false;
public void InitMod(Mod _modInstance)
{
if(inited)
{
return;
}
inited = true;
Log.Out(" Loading Patch: " + GetType());
var harmony = new HarmonyLib.Harmony(GetType().ToString());
harmony.PatchAll(Assembly.GetExecutingAssembly());
ModEvents.UnityUpdate.RegisterHandler(CustomProjectileManager.Update);
}
}