runReplay beta
Function of @v12-engine/engine
ts
export declare function runReplay(replay: CommandReplay, options: {
rules: Rules;
to?: number;
from?: number;
components?: readonly Component<unknown, unknown>[];
}): Promise<{
world: World;
apart: number | null;
difference: Apart | null;
}>;A replay of commands run again, to its end or a tick, with no screen: the world as it is then, the first tick whose hash differs from the one kept (none when all were the same), and what differed first at the first checkpoint (recordCommands' checkpoints) where the world was not the one recorded: the entity and its field (entities[id 11].pos.x), and what each held. A replay with no checkpoints says the tick alone. What a test of a replay, and a server checking one, use