Class Event
- Namespace
- MonkeyLoader.Events
- Assembly
- MonkeyLoader.dll
Marks the base for all event data classes.
Also contains static helper methods.
public abstract class Event
- Inheritance
-
Event
- Derived
- Inherited Members
Properties
IsAsync
Gets whether this event is an AsyncEvent.
public abstract bool IsAsync { get; }
Property Value
IsCancelable
Gets whether this event can be canceled.
public virtual bool IsCancelable { get; }
Property Value
Methods
GetDispatchableBaseEventTypes(Type)
Enumerates all dispatchable
base Types of the given eventType
.
public static IEnumerable<Type> GetDispatchableBaseEventTypes(Type eventType)
Parameters
Returns
- IEnumerable<Type>
Any dispatchable base Types of the
eventType
.
GetDispatchableEventTypes(Type)
Enumerates all Types in the given Event Type's
hierarchy which sources for the eventType
should dispatch for.
public static IEnumerable<Type> GetDispatchableEventTypes(Type eventType)
Parameters
Returns
- IEnumerable<Type>
The
eventType
and any dispatchable base Types of it.
GetSubscribableBaseEventTypes(Type)
Enumerates all subscribable
base Types of the given eventType
.
public static IEnumerable<Type> GetSubscribableBaseEventTypes(Type eventType)
Parameters
Returns
- IEnumerable<Type>
Any subscribable base Types of the
eventType
.
GetSubscribableEventTypes(Type)
Enumerates all Types in the given Event Type's
hierarchy which handlers for the eventType
should be subscribed to.
public static IEnumerable<Type> GetSubscribableEventTypes(Type eventType)
Parameters
Returns
- IEnumerable<Type>
The
eventType
and any subscribable base Types of it.
IsAsyncEvent(Type)
Determines whether the given Event Type is an AsyncEvent.
public static bool IsAsyncEvent(Type eventType)
Parameters
Returns
- bool
true
if it is an AsyncEvent; otherwise,false
.
IsBaseEvent(Type)
public static bool IsBaseEvent(Type type)
Parameters
Returns
IsCancelableAsyncEvent(Type)
Determines whether the given Event Type is a CancelableAsyncEvent.
public static bool IsCancelableAsyncEvent(Type eventType)
Parameters
Returns
- bool
true
if it is a CancelableAsyncEvent; otherwise,false
.
IsCancelableEvent(Type)
public static bool IsCancelableEvent(Type eventType)
Parameters
Returns
- bool
true
if it is cancelable; otherwise,false
.
IsCancelableSyncEvent(Type)
Determines whether the given Event Type is a CancelableSyncEvent.
public static bool IsCancelableSyncEvent(Type eventType)
Parameters
Returns
- bool
true
if it is a CancelableSyncEvent; otherwise,false
.
IsEvent(Type)
public static bool IsEvent(Type type)
Parameters
Returns
IsSyncEvent(Type)
public static bool IsSyncEvent(Type eventType)