def offset_valid

bendvy-ecs-core@0.1.0.3 · execution_query_identity.bend:39

import bendvy-ecs-core@0.1.0.3/execution_query_identity.bend as ExecutionQueryIdentity
import Base
import bendvy-ecs-core@0.1.0.3/world.bend as W

39def offset_valid(~S:Data,~C:Type,~R:Type,~E:Data,capacity:U32,handle:W.Handle<S>,result:W.World<S,C,R,E> & Bool) -> W.World<S,C,R,E> & Offset<S>:
40  match result:
41    case (world,False{}):(world,MissingEntity{handle})
42    case (world,True{}):offset_namespace(~S,~C,~R,~E,capacity,handle,W.namespace(~S,~C,~R,~E,world))

Uses (9)

Used by (1)