@tolokoban/tgd
Version:
ToloGameDev library for WebGL2
12 lines • 384 B
TypeScript
export type TgdLogicFunction = (time: number, delta: number) => void;
/**
* List of logic functions to be called (generaly) on every frame.
*/
export declare class TgdLogic {
private logics;
clear(): this;
add(logic: TgdLogicFunction): this;
remove(logic: TgdLogicFunction): boolean;
exec(time: number, delta: number): void;
}
//# sourceMappingURL=logic.d.ts.map