mwg API
    Preparing search index...

    Interface SpawnerOptions<T>

    interface SpawnerOptions<T> {
        onComplete?: () => void;
        onSpawn: (kind: T) => void;
        onWaveStart?: (waveIndex: number) => void;
        waves: readonly Wave<T>[];
    }

    Type Parameters

    • T
    Index
    onComplete?: () => void

    fires once every scheduled spawn across every wave has happened

    onSpawn: (kind: T) => void
    onWaveStart?: (waveIndex: number) => void

    fires once, the moment the first entry of a wave actually spawns

    waves: readonly Wave<T>[]