Skip to content

StageEnv beta ​

Interface of @v12-engine/client

ts
export interface StageEnv

What the stage's look of the world is to a cinematic: the hour the screen draws (null: the world's), the map's look changed field by field over seconds, and put back as it was before the first change (restore)

Members ​

hour ​

ts
hour(hour: number | null): void;

Sets the hour of the day the screen draws, 0..24, or null for the world's own

hourNow ​

ts
readonly hourNow: number;

The hour the screen draws now

look ​

ts
look(change: Partial<MapEnvironment>, seconds: number): void;

Changes the map's look (MapEnvironment) field by field over seconds

restore ​

ts
restore(seconds: number): void;

Puts the map's look back as it was before the first change, over seconds