UNPKG

polygonjs-engine

Version:

node-based webgl 3D engine https://polygonjs.com

26 lines (25 loc) 935 B
/** * Timer to trigger events at certain intervals * * * */ import { TypedEventNode } from './_Base'; import { NodeParamsConfig } from '../utils/params/ParamsConfig'; declare class TimerEventParamsConfig extends NodeParamsConfig { /** @param period between each interval */ period: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.INTEGER>; /** @param number of times the timer should repeat. Set to -1 to never stop */ count: import("../utils/params/ParamsConfig").ParamTemplate<import("../../poly/ParamType").ParamType.INTEGER>; } export declare class TimerEventNode extends TypedEventNode<TimerEventParamsConfig> { params_config: TimerEventParamsConfig; static type(): string; initializeNode(): void; private _timer_active; private _current_count; private _start_timer; protected _stop_timer(): void; private _run_timer; } export {};