recoverable_component.bend

bendvy-ecs-core@0.1.0.3 · 10 lines · 3 definitions

1import Base
2import bendvy-ecs-core@0.1.0.3/world.bend as W
3import bendvy-ecs-core@0.1.0.3/lifecycle.bend as Life
4
5type Tag is Data:Tag{}
6type Record<S:Data,P:Type> is Type:
7  Record{handle:W.Handle<S>,stamp:Life.Stamp,payload:Maybe<P>}
8type Replacement<World:Type,S:Data,P:Type> is Type:
9  Applied{world:World,previous:Record<S,P>}
10  Refused{world:World,incoming:Maybe<P>,error:W.WorldError}