Skip to content

CutWorld beta ​

Interface of @v12-engine/client

ts
export interface CutWorld

What a cinematic's waits read of a world, wherever it runs (Stage.world, cutWorldOf)

Members ​

seconds ​

ts
seconds(): number;

The world's time, in its seconds: stands still while the world does

sees ​

ts
sees(at: Vec2): boolean;

Whether the screen sees that spot now: a unit missing from a spot in sight is gone, from one in the fog only unseen

unit ​

ts
unit(id: number): CutUnit | undefined;

A unit by its id, as seen now; nothing for one dead, gone or out of sight