diff --git a/BrioAPI_V2.cs b/BrioAPI_V2.cs index 5f2eea3d..411d4144 100644 --- a/BrioAPI_V2.cs +++ b/BrioAPI_V2.cs @@ -41,6 +41,9 @@ public static class BrioAPI private static ICallGateSubscriber Actor_Freeze_IPC; private static ICallGateSubscriber Actor_UnFreeze_IPC; + private static ICallGateSubscriber FreezePhysics_IPC; + private static ICallGateSubscriber UnFreezePhysics_IPC; + // // @@ -73,12 +76,15 @@ public static void InitBrioAPI(IDalamudPluginInterface pluginInterface) Actor_Exists_IPC = pluginInterface.GetIpcSubscriber("Brio.Actor.Exists"); Actor_GetAll_IPC = pluginInterface.GetIpcSubscriber("Brio.Actor.GetAll"); - + Actor_SetSpeed_IPC = pluginInterface.GetIpcSubscriber("Brio.Actor.SetSpeed"); Actor_GetSpeed_IPC = pluginInterface.GetIpcSubscriber("Brio.Actor.GetSpeed"); Actor_Freeze_IPC = pluginInterface.GetIpcSubscriber("Brio.Actor.Freeze"); Actor_UnFreeze_IPC = pluginInterface.GetIpcSubscriber("Brio.Actor.UnFreeze"); + + FreezePhysics_IPC = pluginInterface.GetIpcSubscriber("Brio.FreezePhysics"); + UnFreezePhysics_IPC = pluginInterface.GetIpcSubscriber("Brio.UnFreezePhysics"); } /// @@ -359,4 +365,24 @@ public static bool UnFreezeActor(IGameObject actor) return Actor_UnFreeze_IPC.InvokeFunc(actor); } + + /// + /// Freezes FFXIV's physics simulation. + /// + public static bool FreezePhysics() + { + if (hasInit is false) throw new Exception("Call BrioAPI.InitBrioAPI first!"); + + return FreezePhysics_IPC.InvokeFunc(); + } + + /// + /// Unfreezes FFXIV's physics simulation. + /// + public static bool UnFreezePhysics() + { + if (hasInit is false) throw new Exception("Call BrioAPI.InitBrioAPI first!"); + + return UnFreezePhysics_IPC.InvokeFunc(); + } } diff --git a/BrioTester/BrioAPI_V2.cs b/BrioTester/BrioAPI_V2.cs index a37f29f4..411d4144 100644 --- a/BrioTester/BrioAPI_V2.cs +++ b/BrioTester/BrioAPI_V2.cs @@ -366,6 +366,9 @@ public static bool UnFreezeActor(IGameObject actor) return Actor_UnFreeze_IPC.InvokeFunc(actor); } + /// + /// Freezes FFXIV's physics simulation. + /// public static bool FreezePhysics() { if (hasInit is false) throw new Exception("Call BrioAPI.InitBrioAPI first!"); @@ -373,11 +376,13 @@ public static bool FreezePhysics() return FreezePhysics_IPC.InvokeFunc(); } + /// + /// Unfreezes FFXIV's physics simulation. + /// public static bool UnFreezePhysics() { if (hasInit is false) throw new Exception("Call BrioAPI.InitBrioAPI first!"); return UnFreezePhysics_IPC.InvokeFunc(); } - }