Upload from upload_mods.ps1
This commit is contained in:
17
Harmony/Init.cs
Normal file
17
Harmony/Init.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System.Reflection;
|
||||
|
||||
public class CustomParticleEffectLoaderInit : IModApi
|
||||
{
|
||||
private static bool inited = false;
|
||||
public void InitMod(Mod _modInstance)
|
||||
{
|
||||
if (inited)
|
||||
return;
|
||||
inited = true;
|
||||
Log.Out(" Loading Patch: " + GetType());
|
||||
ModEvents.GameAwake.RegisterHandler(CustomExplosionManager.CreatePropertyParsers);
|
||||
var harmony = new HarmonyLib.Harmony(GetType().ToString());
|
||||
harmony.PatchAll(Assembly.GetExecutingAssembly());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user