spatial-monorepo / wayfinding/src / isRestrictionActiveNow
Function: isRestrictionActiveNow()
isRestrictionActiveNow(
schedule,now?):boolean
Defined in: packages/wayfinding/src/schedule.ts:60
True when now falls inside at least one of schedule.closedWindows. A unit's restriction is only treated as an active block while this is true (see module doc). An empty closedWindows list is never active (matches "no schedule" behaviour for a caller that supplies a schedule object but no windows yet).
Parameters
schedule
now?
Date = ...
Returns
boolean
