Skip to main content

Class: EffectAddBeforeEventSignal

Manages callbacks that are connected to when an effect is added to an entity.

Constructors

new EffectAddBeforeEventSignal()

private new EffectAddBeforeEventSignal(): EffectAddBeforeEventSignal

Returns

EffectAddBeforeEventSignal

Methods

subscribe()

subscribe(callback): (arg) => void

Parameters

ParameterType
callback(arg) => void

Returns

Function

Parameters
ParameterType
argEffectAddBeforeEvent
Returns

void

Remarks

Adds a callback that will be called when an effect is added to an entity.

This function can't be called in read-only mode.


unsubscribe()

unsubscribe(callback): void

Parameters

ParameterType
callback(arg) => void

Returns

void

Remarks

Removes a callback from being called when an effect is added to an entity.

This function can't be called in read-only mode.