Skip to main content

Class: ExplosionBeforeEventSignal

Manages callbacks that are connected to before an explosion occurs.

Constructors

new ExplosionBeforeEventSignal()

private new ExplosionBeforeEventSignal(): ExplosionBeforeEventSignal

Returns

ExplosionBeforeEventSignal

Methods

subscribe()

subscribe(callback): (arg) => void

Parameters

ParameterType
callback(arg) => void

Returns

Function

Parameters
ParameterType
argExplosionBeforeEvent
Returns

void

Remarks

Adds a callback that will be called when before an explosion occurs. The callback can optionally change or cancel explosion behavior.

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 from before when an explosion would occur.

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