CutClock beta
Class of @v12-engine/client
export declare class CutClockThe clock a cinematic runs on: see the top of this file
Members
advance
advance(dt: number): number;Moves the clock on by dt seconds of the screen, at its rate; nothing while paused. Gives back the seconds of its own it moved, for the timers that count them. Reaching the end of a loop is a seek to its start
held
get held(): boolean;Something stands it still (hold)
hold
hold(): () => void;Stands the clock still until what it gives back is called: a line of dialog that waits to be moved on, so the picture stands on it. Not a pause (no pause hook, the transport's state as it is); holds add up, and the clock goes on once every one is let go
loop
loop: CutLoop | null;Goes back to from as it reaches to: the editor playing a stretch over and over
onPause
onPause(listener: (paused: boolean) => void): () => void;Hears every pause and resume
onRate
onRate(listener: (rate: number) => void): () => void;Hears every change of rate
onSeek
onSeek(listener: (time: number, from: number) => void): () => void;Hears every seek, with the time jumped to and the time jumped from. Gives back what stops hearing
pause
pause(): void;Stops the clock and tells those listening that it is paused; nothing when it already is
paused
paused: boolean;Held: advance moves nothing until resume
rate
rate: number;How fast it goes against the screen: 1 is as fast; 0.5 slow motion; 0 holds (as paused does)
resume
resume(): void;Starts the clock again and tells those listening; nothing when it is not paused
seek
seek(time: number): void;Jumps to a time: the lanes are played again from there (what listens, onSeek, sees to that)
setRate
setRate(rate: number): void;Sets how fast it goes (see rate), and tells what listens
time
time: number;Seconds since the cinematic began, on this clock