setDayLength
setDayLength(
clock,realSecondsPerCycle):void
Defined in: packages/engine/src/gameplay/world/actions.ts:74
Sets the real seconds a whole day takes the clock, from its current hour. A length it cannot run on leaves the clock at the one it has.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
clock |
Entity |
realSecondsPerCycle |
number |
Returns
Section titled “Returns”void