Skip to content

Commit 7d08e5b

Browse files
committed
Remove DespawnActorAsync
1 parent 349e0db commit 7d08e5b

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

Brio/IPC/BrioIPCService.cs

-8
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ internal class BrioIPCService : IDisposable
4848
public const string Actor_Despawn_IPCName = "Brio.Actor.Despawn";
4949
private ICallGateProvider<IGameObject, bool>? Actor_DespawnActor_IPC;
5050

51-
public const string Actor_DespawnAsync_IPCName = "Brio.Actor.DespawnAsync";
52-
private ICallGateProvider<IGameObject, Task<bool>>? Actor_DespawnActorAsync_IPC;
53-
5451

5552
public const string Actor_SetModelTransform_IPCName = "Brio.Actor.SetModelTransform";
5653
private ICallGateProvider<IGameObject, Vector3?, Quaternion?, Vector3?, bool, bool>? Actor_SetModelTransform_IPC;
@@ -157,9 +154,6 @@ private void CreateIPC()
157154
Actor_DespawnActor_IPC = _pluginInterface.GetIpcProvider<IGameObject, bool>(Actor_Despawn_IPCName);
158155
Actor_DespawnActor_IPC.RegisterFunc(DespawnActor);
159156

160-
Actor_DespawnActorAsync_IPC = _pluginInterface.GetIpcProvider<IGameObject, Task<bool>>(Actor_DespawnAsync_IPCName);
161-
Actor_DespawnActorAsync_IPC.RegisterFunc(DespawnActorAsync_Impl);
162-
163157
Actor_SetModelTransform_IPC = _pluginInterface.GetIpcProvider<IGameObject, Vector3?, Quaternion?, Vector3?, bool, bool>(Actor_SetModelTransform_IPCName);
164158
Actor_SetModelTransform_IPC.RegisterFunc(ActorSetModelTransform_Impl);
165159

@@ -216,7 +210,6 @@ private void DisposeIPC()
216210
Actor_SpawnExAsync_IPC?.UnregisterFunc();
217211

218212
Actor_DespawnActor_IPC?.UnregisterFunc();
219-
Actor_DespawnActorAsync_IPC?.UnregisterFunc();
220213

221214
Actor_SetModelTransform_IPC?.UnregisterFunc();
222215
Actor_GetModelTransform_IPC?.UnregisterFunc();
@@ -245,7 +238,6 @@ private void DisposeIPC()
245238
Actor_SpawnExAsync_IPC = null;
246239

247240
Actor_DespawnActor_IPC = null;
248-
Actor_DespawnActorAsync_IPC = null;
249241

250242
Actor_SetModelTransform_IPC = null;
251243
Actor_GetModelTransform_IPC = null;

BrioAPI_V2.cs

-14
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ public static class BrioAPI
2020
private static ICallGateSubscriber<bool, bool, bool, Task<IGameObject?>> Actor_SpawnExAsync_IPC;
2121

2222
private static ICallGateSubscriber<IGameObject, bool> Actor_DespawnActor_Ipc;
23-
private static ICallGateSubscriber<IGameObject, Task<bool>> Actor_DespawnActorAsync_Ipc;
2423

2524
private static ICallGateSubscriber<IGameObject, Vector3?, Quaternion?, Vector3?, bool, bool> Actor_SetModelTransform_IPC;
2625
private static ICallGateSubscriber<IGameObject, (Vector3?, Quaternion?, Vector3?)> Actor_GetModelTransform_IPC;
@@ -62,7 +61,6 @@ public static void InitBrioAPI(IDalamudPluginInterface pluginInterface)
6261
Actor_SpawnExAsync_IPC = pluginInterface.GetIpcSubscriber<bool, bool, bool, Task<IGameObject?>>("Brio.Actor.SpawnExAsync");
6362

6463
Actor_DespawnActor_Ipc = pluginInterface.GetIpcSubscriber<IGameObject, bool>("Brio.Actor.Despawn");
65-
Actor_DespawnActorAsync_Ipc = pluginInterface.GetIpcSubscriber<IGameObject, Task<bool>>("Brio.Actor.DespawnAsync");
6664

6765
Actor_SetModelTransform_IPC = pluginInterface.GetIpcSubscriber<IGameObject, Vector3?, Quaternion?, Vector3?, bool, bool>("Brio.Actor.SetModelTransform");
6866
Actor_GetModelTransform_IPC = pluginInterface.GetIpcSubscriber<IGameObject, (Vector3?, Quaternion?, Vector3?)>("Brio.Actor.GetModelTransform");
@@ -146,18 +144,6 @@ public static bool DespawnActor(IGameObject actorToDespawn)
146144
return Actor_DespawnActor_Ipc.InvokeFunc(actorToDespawn);
147145
}
148146

149-
/// <summary>
150-
/// Despawns an actor asynchronously.
151-
/// </summary>
152-
/// <param name="actorToDespawn">The actor to despawn.</param>
153-
/// <returns>True if the actor was successfully despawned, otherwise false.</returns>
154-
public static Task<bool> DespawnActorAsync(IGameObject actorToDespawn)
155-
{
156-
if (hasInit is false) throw new Exception("Call BrioAPI.InitBrioAPI first!");
157-
158-
return Actor_DespawnActorAsync_Ipc.InvokeFunc(actorToDespawn);
159-
}
160-
161147
/// <summary>
162148
/// Sets the model transform of an actor.
163149
/// </summary>

0 commit comments

Comments
 (0)