Synced
EventHub
Section titled “EventHub”
- A disposable subscription hub bound to a single
T:InnoEngine.Events.EventDispatcher.
Required contracts
Section titled “Required contracts”API: scripting
Implements: System.IDisposable
Inherits: object
Project: Inno.Core.Events
Scope: Runtime
Declaration
Section titled “Declaration”public sealed class InnoEngine.Events.EventHub : System.IDisposableRemarks
Section titled “Remarks”Dispatch visits the concrete event type before its base types. Within each type bucket, listeners are ordered by priority (descending) and registration order (ascending). Callbacks execute on the dispatching thread; subscription disposal does not join an active callback.
Members
Section titled “Members”| Kind | Element | Description |
|---|---|---|
| Constructors | EventHub.Constructor | Appears in the generated script reference without a matching public or protected engine constructor. |
| Methods | EventHub.Announce | Immediately dispatches an event inside this hub only. |
| Methods | EventHub.Dispose | Disposes this hub and removes all listeners in this layer. |
| Methods | EventHub.Listen | Subscribes a listener for the specified event type. |
| Methods | EventHub.ListenOnce | Subscribes a one-shot listener for the specified event type. |
| Properties | EventHub.isValid | Gets whether this hub is still attached to a live dispatcher and not disposed. |
| Properties | EventHub.order | Gets or sets the hub dispatch order. Higher values run earlier. |