[AddonEventManager] Properly track and cleanup events.

Also replaced DTR hooks with AddonLifecycle events.
This commit is contained in:
MidoriKami 2023-09-19 17:16:55 -07:00
parent 979a5463ca
commit 674f02136b
7 changed files with 421 additions and 228 deletions

View file

@ -29,9 +29,7 @@ public interface IAddonEventManager
/// Unregisters an event handler with the specified event id and event type.
/// </summary>
/// <param name="eventId">The Unique Id for this event.</param>
/// <param name="atkResNode">The node for this event.</param>
/// <param name="eventType">The event type for this event.</param>
void RemoveEvent(uint eventId, nint atkResNode, AddonEventType eventType);
void RemoveEvent(uint eventId);
/// <summary>
/// Force the game cursor to be the specified cursor.