def frame

bendvy-ecs-core@0.1.0.4 · event_runtime.bend:102

import bendvy-ecs-core@0.1.0.4/event_runtime.bend as EventRuntime
import Base

102# Advance frame markers and apply trim, returning actual Runtime/World. This
103# bounds normal visibility while preserving unread holds only within hard capacity.
104# Does not run a system, apply pending structural commands or acknowledge readers.
105def frame(~S: Data,~C: Type,~R: Type,~E: Data,runtime: Runtime<S,C,R,E>) -> Runtime<S,C,R,E>:
106  match runtime:
107    case Runtime{world,namespace,batches,positions,nextReader,+tick,+frameStart,_,capacity,dropped}: trim(~S,~C,~R,~E,Runtime{world,namespace,batches,positions,nextReader,tick,tick,frameStart,capacity,dropped})

Uses (2)

Used by (1)