Skip to content

AchievementFacts beta ​

Interface of @v12-engine/client

ts
export interface AchievementFacts

What a condition is asked of: the player's numbers and objectives as their screen has them now

Members ​

game ​

ts
game: string;

The game, by id

objective ​

ts
objective(id: string): 'open' | 'done' | 'failed' | undefined;

An objective of the player's, by id: open, done, failed, or nothing where they have none of it

outcome ​

ts
outcome?: 'victory' | 'defeat';

How the game ended for the player, once it did

seconds ​

ts
seconds: number;

Seconds of the game

stat ​

ts
stat(id: string): number;

A stat of the player's, as the score tells it (docs/score.md): 0 where it says none