Skip to content

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.

Parameter Type
clock Entity
realSecondsPerCycle number

void