@rbxts/planck
Version:
An agnostic scheduler for ECS
14 lines (11 loc) • 530 B
TypeScript
import { EventInstance, EventLike } from "./types";
type Condition = () => boolean;
declare const timePassed: (time: number) => Condition;
declare const exported: {
timePassed: (time: number) => Condition;
runOnce: () => Condition;
onEvent: <T extends unknown[]>(instance: EventInstance<T>, event?: string) => LuaTuple<[Condition, () => IterableFunction<LuaTuple<[number, ...T]>>, () => void]>;
isNot: (condition: Condition) => Condition;
cleanupCondition: (condition: Condition) => void
}
export = exported