Skip to content

DayClock

const DayClock: Trait<{ hour: number; realSecondsPerCycle: number; }>

Defined in: packages/engine/src/gameplay/world/traits.ts:29

The hour the world is at, which the sun’s whole position comes from, and the real seconds a whole cycle takes it. Nothing saves either, so every load opens at the same hour and runs at the same speed unless a World is given its own.