- EventHandler<E, K>(emitter: E, event: K, priority?: number): ((host: any, property2: string | number | symbol, descriptor: TypedPropertyDescriptorFunctionAnyNOfParams<Handler<EventBus, EventBuses, E, K>>) => void)
-
Type Parameters
-
-
K extends string | number | symbol
Parameters
-
emitter: E
-
event: K
-
Optional
priority: number
Returns ((host: any, property2: string | number | symbol, descriptor: TypedPropertyDescriptorFunctionAnyNOfParams<Handler<EventBus, EventBuses, E, K>>) => void)
-
- (host: any, property2: string | number | symbol, descriptor: TypedPropertyDescriptorFunctionAnyNOfParams<Handler<EventBus, EventBuses, E, K>>): void
-
Parameters
-
host: any
-
property2: string | number | symbol
-
descriptor: TypedPropertyDescriptorFunctionAnyNOfParams<Handler<EventBus, EventBuses, E, K>>
Returns void
- EventHandler<E, K>(emitter: E, event: K, priority?: number): ((host: any, property2: string | number | symbol, descriptor: TypedPropertyDescriptorFunctionAnyNOfParams<Handler<EventBus, EventBuses, IEventEmitterHost<Events<E>>, K>>) => void)
-
Type Parameters
-
E extends HostOrHostClass
-
K extends string | number | symbol
Parameters
-
emitter: E
-
event: K
-
Optional
priority: number
Returns ((host: any, property2: string | number | symbol, descriptor: TypedPropertyDescriptorFunctionAnyNOfParams<Handler<EventBus, EventBuses, IEventEmitterHost<Events<E>>, K>>) => void)
-
- (host: any, property2: string | number | symbol, descriptor: TypedPropertyDescriptorFunctionAnyNOfParams<Handler<EventBus, EventBuses, IEventEmitterHost<Events<E>>, K>>): void
-
Parameters
-
host: any
-
property2: string | number | symbol
-
descriptor: TypedPropertyDescriptorFunctionAnyNOfParams<Handler<EventBus, EventBuses, IEventEmitterHost<Events<E>>, K>>
Returns void
EventHandler that is typed with the games event buses