1681-engine / index / DayState
Interface: DayState<P> ​
Defined in: src/ambient/DayClock.ts:48
Type Parameters ​
| Type Parameter | Default type |
|---|---|
P extends string | string |
Properties ​
alpha ​
ts
alpha: number;Defined in: src/ambient/DayClock.ts:56
How strongly the grade is laid (0 at full day).
color ​
ts
color: number;Defined in: src/ambient/DayClock.ts:54
The grade over the outdoor world, 0xRRGGBB.
id ​
ts
id: "" | P;Defined in: src/ambient/DayClock.ts:52
The part of the day phase falls in.
night ​
ts
night: number;Defined in: src/ambient/DayClock.ts:58
0 by day, 1 at the darkest key: how much lamps matter.
phase ​
ts
phase: number;Defined in: src/ambient/DayClock.ts:50
0..1 through the game day: 0 midnight, 0.5 noon.