Skip to content
API referenceDevelopmentRuntime scriptingEngine ccf7d03f
Synced
  • A disposable subscription hub bound to a single T:InnoEngine.Events.EventDispatcher.

API: scripting
Implements: System.IDisposable
Inherits: object
Project: Inno.Core.Events
Scope: Runtime

public sealed class InnoEngine.Events.EventHub : System.IDisposable

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.

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.