execution_context.bend

bendvy-ecs-core@0.1.0.1 · 9 lines · 0 definitions

1import Base
2import bendvy-ecs-core@0.1.0.1/trace_facts.bend as Facts
3# Execution transport, separate from the owned ECS World and gameplay providers.
4type Context<W:Type> is Type:
5  Context{world:W,trace:Facts.State}
6def disabled(~W:Type,world:W) -> Context<W>:
7  Context{world,Facts.Off{}}
8def enabled(~W:Type,world:W) -> Context<W>:
9  Context{world,Facts.On{[]}}