def index

bendvy-ecs-core@0.1.0.3 · entity_key.bend:9

import bendvy-ecs-core@0.1.0.3/entity_key.bend as EntityKey
import Base

9# Return only the slot index, discarding generation for this observation.
10# Equal indices do not establish equal entity identities or valid handles.
11def index(key:Key) -> U32:
12  match key:
13    case EntityKey{index,_}:index

Uses (2)

Used by (12)