TransitionRegistry beta
Class of @v12-engine/client
ts
export declare class TransitionRegistryThe transitions known: the client's own and a game's (add), by id. One of an id already there takes its place
Members
constructor
ts
constructor(defs?: Iterable<TransitionDef>);Constructs a new instance of the TransitionRegistry class
add
ts
add(def: TransitionDef): void;Puts a transition into the registry under its id, replacing one already there
get
ts
get(id: string): TransitionDef | undefined;Gives the transition with this id, or undefined when none is known
list
ts
list(): TransitionDef[];Gives every transition known, the client's own and a game's, in the order added