UNPKG

@rjfwhite/random-lib

Version:

Core engine for MML

15 lines 585 B
import { Behavior, AttachmentRule } from './types'; import { WorldMaker } from '../WorldMaker'; export declare class SpawnerBehavior extends Behavior { private spawnInterval; private lastSpawnTime; private spawnTemplate; static getAttachmentRules(): AttachmentRule[]; constructor(element: Element, world: WorldMaker); onAttach(): void; onDetach(): void; onAttributeChange(attributeName: string, oldValue: string | null, newValue: string | null): void; tick(deltaTime: number): void; private spawn; } //# sourceMappingURL=SpawnerBehavior.d.ts.map