@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
52 lines • 1.34 kB
TypeScript
export default ViewEmitter;
/**
* @template T
*/
declare class ViewEmitter<T> {
source: Vector2;
objectEmitter: AnimatedObjectEmitter<any, any>;
/**
*
* @type {(T)=>View}
*/
viewFactory: (T: any) => View;
/**
* Allows modifying timing of the view emitter by slowing or speeding up the time
* @type {number}
*/
timeScale: number;
on: {
spanwed: import("../../../core/events/signal/Signal.js").default<any, any, any, any, any, any, any, any>;
removed: import("../../../core/events/signal/Signal.js").default<any, any, any, any, any, any, any, any>;
};
/**
*
* @param {AnimationTrack} animationTrack
* @param {function} updater
*/
setAnimation(animationTrack: AnimationTrack, updater: Function): void;
/**
*
* @param {number} v
*/
setRushThreshold(v: number): void;
/**
*
* @param {number} v in seconds
*/
setSpawnDelay(v: number): void;
tick(timeDelta: any): void;
/**
*
* @param options
*/
spawn(options: any): void;
/**
*
* @param {View} view
*/
remove(view: View): boolean;
}
import Vector2 from "../../../core/geom/Vector2.js";
import { AnimatedObjectEmitter } from "./AnimatedObjectEmitter.js";
//# sourceMappingURL=ViewEmitter.d.ts.map