Skip to content

DecisionRecorder beta ​

Interface of @v12-engine/engine/testing

ts
export interface DecisionRecorder

The decisions of every computer of a world, as they are made (recordDecisions): plain data, for a side file beside a replay of commands, read back by whoever wonders why the computer did what the replay shows

Members ​

decisions ​

ts
readonly decisions: readonly RecordedDecision[];

Every decision so far, in the order made

stop ​

ts
stop(): void;

Stops recording; the decisions so far stay