FramePhase beta
Interface of @v12-engine/client
ts
export interface FramePhaseA phase of the frame (ClientFrame), by name: what it does with the frame. One that gives back false ends the frame there, and nothing after it runs (the client's apply does, once the game ended on an error in its rules)
Members
name
ts
readonly name: string;The phase's name, which other phases place themselves by
run
ts
run(frame: FrameInfo): void | false;Does the phase's work for one frame; gives back false to end the frame there