def registration_matches

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

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

336# Check retained id, name and exact ordered access strings while returning World.
337# No sorting/normalization creates extra authority or verifies arbitrary callbacks.
338def registration_matches(~S: Data,~C: Type,~R: Type,~E: Data,world: World<S,C,R,E>,+id: U32,+name: String,+access: List<&2,String>) -> World<S,C,R,E> & Bool:
339  match world:
340    case World{+namespace,allocator,store,resource,+events,pending,+registrations,+nextSystemId,+clock}: (World{namespace,allocator,store,resource,events,pending,registrations,nextSystemId,clock},registration_list_matches(registrations,id,name,access))

Uses (8)

Used by (7)