AbstractComponent

constructor(eventEmitter: EventEmitter, componentClass: Class<out Component>)

Being Components, Controllers inheriting from AbstractController require an EventEmitter on initialization.

Parameters

eventEmitter

the EventEmitter through which this Component will listen for and emit events to interact with other components in the player


constructor(eventEmitter: EventEmitter)

Build an AbstractComponent that does not use a registering event emitter.

Parameters

eventEmitter

the EventEmitter through which this Component will listen for and emit events to interact with other components in the player