def checked

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

import bendvy-ecs-core@0.1.0.4/world.bend as World
import Base

146def checked(~S:Data,~C:Type,~R:Type,~E:Data,mode:U32,world:World<S,C,R,E>,handle:Handle<S>) -> World<S,C,R,E> & Bool:
147  match world handle:
148    case World{+namespace,allocator,store,resource,events,pending,registrations,nextSystemId,clock} Handle{ns,key}:checked_namespace(~S,~C,~R,~E,U32.is_eq(namespace,ns),mode,World{namespace,allocator,store,resource,events,pending,registrations,nextSystemId,clock},key)

Uses (7)

Used by (3)