register

fun <T : Event> register(name: String, template: EventScope<T>.() -> Unit)

Registers a new event template with the specified name.

The template is a function that configures an EventScope for a specific event type. It can be reused to apply the same conditions or filters across multiple event listeners.

Parameters

name

The name of the event template to register.

template

The event scope configuration function to register.