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
objobjectThe type instance.
CreateFromTypeInstance(object)
public static void CreateFromTypeInstance(object obj)
Parameters
objobject
DestroyFromTypeInstance(object)
Unbinds all the dynamic handlers in the specified type instance.
public static void DestroyFromTypeInstance(object obj)
Parameters
objobjectThe type instance.
InvokeSafely(FDelegate)
Executes all DynamicEventManager.FDelegate<T> listeners safely.
public void InvokeSafely(DynamicEventManager.FDelegate ev)
Parameters
evDynamicEventManager.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
evDynamicEventManager.FDelegate<T>Source event.
argTEvent arg.
Type Parameters
TEvent 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
objobjectThe type instance.