lifetime_scope.bend checks
raw source on the hub · import bendvy-ecs-core@0.1.0.3/lifetime_scope.bend as Lifetime_scope
4 imports
import Base import entity_key.bend as Key import ./world.bend as W import ./string_equality.bend as Text
Types
type Scope source · line 7 · raw
@-S:Data -> Data
Lifetime metadata is separate from component owners and never proves liveness.
Scope@-S:Data -> @namespace:U32 -> @name:String -> Scope<S>
type Member source · line 9 · raw
Data
Member@name:String -> @id:0x704c77730661eff4309838fc738ef615/entity_key.Key -> Member
type Store source · line 11 · raw
@-S:Data -> @C:Type -> Type
Store@-S:Data -> @C:Type -> @components:C -> @members:List<&2, Member> -> Store<S, C>
type SpawnResult source · line 27 · raw
@S:Data -> @P:Type -> Type
Spawned@S:Data -> @P:Type -> @handle:0x704c77730661eff4309838fc738ef615/world.Handle<S> -> SpawnResult<S, P>
SpawnRejected@S:Data -> @P:Type -> @payload:P -> @error:0x704c77730661eff4309838fc738ef615/world.WorldError -> SpawnResult<S, P>
Definitions
def without source · line 15 · raw
@members:List<&2, Member> -> @+id:0x704c77730661eff4309838fc738ef615/entity_key.Key -> List<&2, Member>
def select source · line 21 · raw
@members:List<&2, Member> -> @+name:String -> List<&2, 0x704c77730661eff4309838fc738ef615/entity_key.Key>
Templates
template empty source · line 13 · raw
@-S:Data -> @-C:Type -> @components:C -> Store<S, C>