EventTriggerDefinition

Registers a custom EventTrigger subtype's class with the framework's MosaicSerializer — the unit passed in MosaicDependencyInjectionConfig.eventTriggerDefinition. Unlike TileDefinition/ EventDefinition, there's no renderer/runner/holder-builder to also register here — a trigger has no behavior of its own, it's only ever compared for equality (see the mosaic skill's event-chaining mechanism), so serialization registration is all a custom trigger type needs.

Properties

Link copied to clipboard
abstract val eventTriggerClass: KClass<T>

The trigger class this definition is for.