Skip to content

CutEnv beta ​

Class of @v12-engine/client

ts
export declare class CutEnv

The world's look on this screen (cut.env): see the top of this file

Members ​

constructor ​

ts
constructor(cut: Cut);

Constructs a new instance of the CutEnv class

apply ​

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

The look changed at once, as look does, with no step to wait on: what the env lane does

fog ​

ts
fog(fog: MapEnvironment['fog'], seconds?: number): Promise<void>;

The mist by distance on this screen

hour ​

ts
hour(hour: number | null, seconds?: number, ease?: Ease | string): Promise<void>;

The hour the screen draws (the sky, the light, the lamps), eased to over seconds the short way round the clock; the world's own hour goes on. null gives the world's back

look ​

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

The map's look changed on this screen (MapEnvironment, field by field), eased into over seconds

reset ​

ts
reset(seconds?: number): void;

The map's look and the hour as they were before the cinematic changed them, over seconds

showHour ​

ts
showHour(hour: number): void;

The hour drawn set at once, as hour does with no seconds: what the env lane does each frame

weather ​

ts
weather(weather: MapEnvironment['weather'] | null, seconds?: number): Promise<void>;

The weather on this screen: a kind of it (rain, snow, the game's) and how much, or none

wind ​

ts
wind(wind: MapEnvironment['wind'], seconds?: number): Promise<void>;

The wind on this screen