def observer
import bendvy-ecs-core@0.1.0.4/ordinary_app_resource_declaration.bend as OrdinaryAppResourceDeclarationimport Base
import bendvy-ecs-core@0.1.0.4/world.bend as W
47# Advanced App projection: consume the declaration and obtain the function
48# World -> (World, V). The World owner is returned after the resource projection;
49# this observer neither registers nor executes the resource system.
50def observer(~S:Data,~C:Type,~R:Type,~E:Data,~Ops:Type -> Type,~V:Data,declaration:Declaration<S,C,R,E,Ops,V>) -> W.World<S,C,R,E> -> W.World<S,C,R,E> & V:
51 match declaration:
52 case Declaration{_,observe,_}:observe
Uses (3)
Used by (0)
No other definition uses this definition.