Skip to main content

Function: resolveClockNow()

resolveClockNow(clockState): number

Defined in: clock.ts:42

Internal

Derives the current game time from a clock state.

Exported so React hooks can compute the same value from a Valtio snapshot without duplicating the anchor arithmetic.

Parameters

clockState

Readonly<ClockState>

Returns

number