From 06a96d121febdc2d42208cbde4cd3f908649452e Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 11 Aug 2021 00:45:15 +0100 Subject: Add a detach method that takes an Implementation array. --- include/modules.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') diff --git a/include/modules.h b/include/modules.h index b8c547990..9095ae60e 100644 --- a/include/modules.h +++ b/include/modules.h @@ -1147,6 +1147,15 @@ class CoreExport ModuleManager */ bool Detach(Implementation i, Module* mod); + /** Detach an array of events from a module + * This is not required when your module unloads, as the core will + * automatically detach your module from all events it is attached to. + * @param i Event types (array) to detach + * @param mod Module to detach events from + * @param sz The size of the implementation array + */ + void Detach(Implementation* i, Module* mod, size_t sz); + /** Detach all events from a module (used on unload) * @param mod Module to detach from */ -- cgit v1.3.1-10-gc9f91