IdleHost beta
Interface of @v12-engine/editor
ts
export interface IdleHostWhat the editor's idle rule acts on
Members
engine
ts
readonly engine: EngineFace;The loop the idle rule stops and starts (the stage's)
frame
ts
readonly frame: () => void;Draws a frame: what the render loop runs
mayIdle
ts
readonly mayIdle: () => boolean;Whether it may be idle now: not while a game is played over it
rule
ts
readonly rule: () => {
whenIdle: WhenIdle;
maxFps: number;
};The rule as set, and the frames a second at most otherwise (0: as many as the screen shows)