checkDayLength
checkDayLength(
realSecondsPerCycle):boolean
Defined in: packages/engine/src/gameplay/world/actions.ts:63
Whether the clock can run on a day length. advanceDayClock divides by
it every frame: zero or NaN turns the hour to NaN for good, a
negative length runs the day backwards and an infinite one stops it.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
realSecondsPerCycle |
number |
Returns
Section titled “Returns”boolean