ResourceField.replace_world: def of bendvy-ecs-core@0.1.0.3 Import: import bendvy-ecs-core@0.1.0.3/resource_field.bend as ResourceField Lines 18-22 of bendvy-ecs-core@0.1.0.3/resource_field.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.3/resource_field.bend&start_line=18&end_line=22 import Base import bendvy-ecs-core@0.1.0.3/owner_product.bend as Product import bendvy-ecs-core@0.1.0.3/world.bend as W # Runtime replacement owners cannot be captured in an erased projector template. # Trusted engine boundary threads the same World fields through the core join. def replace_world(~S:Data,~C:Type,~R:Type,~E:Data,~P:Type,~Rest:Type,~lens:Product.Lens,replacement:P,world:W.World) -> W.World & P: match world: case W.World{+namespace,allocator,store,resource,+events,pending,+registrations,+nextSystemId,+clock,lifecycle}:W.observe_resource_finish(~S,~C,~R,~E,~P,replace(~R,~P,~Rest,~lens,replacement,resource),namespace,allocator,store,events,pending,registrations,nextSystemId,clock,lifecycle) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/owner_product.bend&name=Lens https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/resource_field.bend&name=replace https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/world.bend&name=World https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/world.bend&name=observe_resource_finish