Skip to content

LightWhen beta ​

TypeAlias of @v12-engine/client

ts
export type LightWhen = 'night' | 'always' | ((at: {
    hour: number | undefined;
    daylight: number;
}) => number);

What a light is on at, given the hour and how much daylight there is: 0 off, 1 fully on