def execution_clock

bendvy-ecs-core@0.1.0.4 · world.bend:63

import bendvy-ecs-core@0.1.0.4/world.bend as World
import Base
import bendvy-ecs-core@0.1.0.4/change_tick.bend as Tick
import bendvy-ecs-core@0.1.0.4/clock_state.bend as Clock

63# Observe this execution's captured tick without advancing administrative time.
64def execution_clock(~S:Data,~C:Type,~R:Type,~E:Data,world:World<S,C,R,E>) -> World<S,C,R,E> & Tick.Tick:
65  match world:
66    case World{namespace,allocator,store,resource,events,pending,registrations,nextSystemId,+clock}:(World{namespace,allocator,store,resource,events,pending,registrations,nextSystemId,clock},Clock.current(clock))

Uses (5)

Used by (5)