[AlternateIKSystem] Add BTKUI support. Fixed teleporting not resetting IK.

This commit is contained in:
NotAKidoS 2023-07-11 22:53:09 -05:00
parent eaccf42d1b
commit 74803a0e09
7 changed files with 165 additions and 32 deletions

View file

@ -20,6 +20,17 @@ public class AlternateIKSystem : MelonMod
ApplyPatches(typeof(HarmonyPatches.PlayerSetupPatches));
ApplyPatches(typeof(HarmonyPatches.IKSystemPatches));
InitializeIntegration("BTKUILib", Integrations.BTKUIAddon.Initialize);
}
private static void InitializeIntegration(string modName, Action integrationAction)
{
if (RegisteredMelons.All(it => it.Info.Name != modName))
return;
Logger.Msg($"Initializing {modName} integration.");
integrationAction.Invoke();
}
private void ApplyPatches(Type type)