Skip to content

SessionCan beta ​

Interface of @v12-engine/engine

ts
export interface SessionCan

What a session can do besides being a seat, each where it can (GameSession.can): a game played in this page holds its pace and saves, a game in a worker of it says its timing too, a seat a computer plays from serves its brain. Asked for as session.can.pace?.advance(): there or not

Members ​

computer ​

ts
readonly computer?: SessionComputer;

What a computer player's brain reads besides the snapshot: a seat in the simulation's own thread

inspect ​

ts
readonly inspect?: SessionDebug;

The debug tools' view of the simulation, where the session allows it

pace ​

ts
readonly pace?: SessionPace;

The pace, where it is this player's to set: a game played in this page, in its thread or in a worker of it

saves ​

ts
readonly saves?: SessionSaves;

Saves of the world as it stands, and the last checkpoint: a game played in this page

timing ​

ts
readonly timing?: SessionTiming;

Where the time of a simulation run elsewhere in this page went of late: a worker (S54)