Skip to content

ScoreState beta ​

Interface of @v12-engine/engine

ts
export interface ScoreState

What a player is told of the score (Snapshot.score): the numbers of the players they may see, as they stood at tick. Rounded to hundredths

Members ​

final ​

ts
final: boolean;

The game is decided: these are the numbers it ended with, told as ScoreSettings.end says

players ​

ts
players: PlayerId[];

Whose numbers are in it

tick ​

ts
tick: number;

The tick the numbers stood at

types ​

ts
types?: Record<string, Record<number, Record<string, number>>>;

By stat, by player, by type: of the stats kept byType

values ​

ts
values: Record<string, Record<number, number>>;

By stat, by player