Class DynamicEventManager
- Namespace
- Exiled.API.Features.DynamicEvents
- Assembly
- Exiled.API.dll
The class which handles all the multicast delegates.
public class DynamicEventManager : StaticActor, IEntity, IWorldSpace, IPosition, IRotation
- Inheritance
-
DynamicEventManager
- Implements
- Inherited Members
- Extension Methods
Methods
BindAllFromTypeInstance(object)
Initializes all the dynamic handlers in the specified type instance.
public void BindAllFromTypeInstance(object obj)
Parameters
obj
objectThe type instance.
CreateFromTypeInstance(object)
public static void CreateFromTypeInstance(object obj)
Parameters
obj
object
DestroyFromTypeInstance(object)
Unbinds all the dynamic handlers in the specified type instance.
public static void DestroyFromTypeInstance(object obj)
Parameters
obj
objectThe type instance.
InvokeSafely(FDelegate)
Executes all DynamicEventManager.FDelegate<T> listeners safely.
public void InvokeSafely(DynamicEventManager.FDelegate ev)
Parameters
ev
DynamicEventManager.FDelegateSource event.
Exceptions
- ArgumentNullException
Event is null.
InvokeSafely<T>(FDelegate<T>, T)
Executes all DynamicEventManager.FDelegate<T> listeners safely.
public void InvokeSafely<T>(DynamicEventManager.FDelegate<T> ev, T arg) where T : EventArgs
Parameters
ev
DynamicEventManager.FDelegate<T>Source event.
arg
TEvent arg.
Type Parameters
T
Event arg type.
Exceptions
- ArgumentNullException
Event or its arg is null.
UnbindAllFromTypeInstance(object)
Unbinds all the dynamic handlers in the specified type instance.
public void UnbindAllFromTypeInstance(object obj)
Parameters
obj
objectThe type instance.