def snapshot

bendvy-ecs-core@0.1.0.3 · execution_lifetime_scope_store.bend:43

import bendvy-ecs-core@0.1.0.3/execution_lifetime_scope_store.bend as ExecutionLifetimeScopeStore
import Base
import bendvy-ecs-core@0.1.0.3/lifetime_scope.bend as Scope

43def snapshot(~S:Data,+actual:U32,store:Store<S>,scope:Scope.Scope<S>) -> Store<S> & Snapshot<S>:
44  match store scope:
45    case Store{+namespace,members} Scope.Scope{+scopeNamespace,+name}:snapshot_checked(~S,Bool.and(U32.is_eq(actual,namespace),U32.is_eq(actual,scopeNamespace)),Store{namespace,members},Scope.Scope{scopeNamespace,name})

Uses (8)

Used by (1)