This commit is contained in:
NotAKidoS 2023-05-09 03:46:58 -05:00
parent 26441f8b1e
commit c7b16abd4f
27 changed files with 591 additions and 91 deletions

26
InteractionTest/Main.cs Normal file
View file

@ -0,0 +1,26 @@
using MelonLoader;
namespace NAK.InteractionTest;
public class InteractionTest : MelonMod
{
internal static MelonLogger.Instance Logger;
public override void OnInitializeMelon()
{
ApplyPatches(typeof(HarmonyPatches.PuppetMasterPatches));
ApplyPatches(typeof(HarmonyPatches.PlayerSetupPatches));
}
void ApplyPatches(Type type)
{
try
{
HarmonyInstance.PatchAll(type);
}
catch (Exception e)
{
LoggerInstance.Msg($"Failed while patching {type.Name}!");
LoggerInstance.Error(e);
}
}
}