ExecutionLifetimeScopeBuffer.selected: def of bendvy-ecs-core@0.1.0.3 Import: import bendvy-ecs-core@0.1.0.3/execution_lifetime_scope_buffer.bend as ExecutionLifetimeScopeBuffer Lines 30-33 of bendvy-ecs-core@0.1.0.3/execution_lifetime_scope_buffer.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.3/execution_lifetime_scope_buffer.bend&start_line=30&end_line=33 import Base import bendvy-ecs-core@0.1.0.3/world.bend as W import bendvy-ecs-core@0.1.0.3/lifetime_scope.bend as Scope import bendvy-ecs-core@0.1.0.3/execution_composer_layout.bend as Layout import bendvy-ecs-core@0.1.0.3/execution_command_buffer.bend as Buffer import bendvy-ecs-core@0.1.0.3/execution_command_permission.bend as Permission import bendvy-ecs-core@0.1.0.3/execution_relation_resource_snapshot.bend as Snapshot import bendvy-ecs-core@0.1.0.3/execution_lifetime_scope_command.bend as Commands import bendvy-ecs-core@0.1.0.3/execution_lifetime_scope_store.bend as Store import bendvy-ecs-core@0.1.0.3/execution_lifetime_scope_resource_dispatch.bend as Dispatch import bendvy-ecs-core@0.1.0.3/execution_lifetime_scope_cleanup.bend as Cleanup import bendvy-ecs-core@0.1.0.3/change_tick.bend as Tick def selected(~S:Data,~C:Type,~R:Type,~E:Data,~P:Type,~D:Type,~resources:Layout.Layout,~same:{R == Layout.resources(~S,resources) : Type},~selection:Permission.Selection,~dispose:Cleanup.Dispose(~S,~C,~R,~E,~P,~D),+route:Layout.Route,+scope:Scope.Scope,views:List<&2,Snapshot.GraphView>,tick:Tick.Tick,result:W.World & Dispatch.Outcome) -> W.World & Buffer.Receipt: match result: case (world,Dispatch.Completed{Store.Selection{Store.Selected{selectedScope,+members}}}):start(~S,~C,~R,~E,~P,~D,~resources,~same,~selection,~dispose,route,scope,members,views,tick,[Buffer.ScopeStoreApplied{route,Store.Select{scope},Dispatch.Completed{Store.Selection{Store.Selected{selectedScope,members}}}}],world) case (world,result):(world,Buffer.ScopePublished{route,Commands.Cleanup{scope},Buffer.ScopeDenied{Buffer.ScopeStoreRefused{}},[Buffer.ScopeStoreApplied{route,Store.Select{scope},result}],[]}) Uses (21): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/change_tick.bend&name=Tick https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_command_buffer.bend&name=Receipt https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_command_buffer.bend&name=ScopeDenial https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_command_buffer.bend&name=ScopeStatus https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_command_permission.bend&name=Selection https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_composer_layout.bend&name=Layout https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_composer_layout.bend&name=Route https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_composer_layout.bend&name=resources https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_lifetime_scope_buffer.bend&name=start https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_lifetime_scope_cleanup.bend&name=Dispose https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_lifetime_scope_command.bend&name=Operation https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_lifetime_scope_resource_dispatch.bend&name=Outcome https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_lifetime_scope_store.bend&name=Outcome https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_lifetime_scope_store.bend&name=Request https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_lifetime_scope_store.bend&name=Snapshot https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/execution_relation_resource_snapshot.bend&name=GraphView https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/lifetime_scope.bend&name=Scope https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/world.bend&name=World