Log inGet started
World

Skyclock: Day, Night and Weather Kit

README.md

state

The single source of truth. The scene's WorldClock registers here as the host; its owner is the authority. Holds the shared timeline (State.now()), the clock, weather and sky records, and routes a change from a non-owner to the owner over multiplayer.send. With no host it runs on a local record (tests, previews). State.isAuthority() tells game code whether this machine should make shared-world changes.

Tests only: State._snapshot() / State._restore(s) read and put back everything the clock and weather stand on (host, local record, timeline, the host's records); State._setSender(fn) captures what a guest would send, so a test never reaches the real players; State._holdThroughReload / State._takeHandover carry a clock through an edit-mode unload and reload.