def remove

bendvy-ecs-core@0.1.0.4 · registration.bend:21

import bendvy-ecs-core@0.1.0.4/registration.bend as Registration
import Base
import bendvy-ecs-core@0.1.0.4/world.bend as W

21def remove(~S: Data,~Store: Type,~R: Type,~E: Data,world: W.World<S,Store,R,E>,namespace: U32,+id: U32,+name: String,+access: List<&2,String>) -> W.World<S,Store,R,E> & Bool:
22  match world:
23    case W.World{+actual,allocator,store,resource,events,pending,+registrations,nextSystemId,clock}: remove_checked(~S,~Store,~R,~E,Bool.and(U32.is_eq(namespace,actual),W.registration_list_matches(registrations,id,name,access)),W.World{actual,allocator,store,resource,events,pending,registrations,nextSystemId,clock},id,name,access)

Uses (10)

Used by (3)