def observe_resource
bendvy-ecs-core@0.1.0.3 · world.bend:282
import bendvy-ecs-core@0.1.0.3/world.bend as World
import Base
282
283
284
285def observe_resource(~S: Data,~C: Type,~R: Type,~E: Data,~V: Type,~project: R -> R & V,world: World<S,C,R,E>) -> World<S,C,R,E> & V:
286 match world:
287 case World{+namespace,allocator,store,resource,+events,pending,+registrations,+nextSystemId,+clock,lifecycle}: observe_resource_finish(~S,~C,~R,~E,~V,project(resource),namespace,allocator,store,events,pending,registrations,nextSystemId,clock,lifecycle)