def handle_index

bendvy-ecs-core@0.1.0.3 · world.bend:105

import bendvy-ecs-core@0.1.0.3/world.bend as World
import Base
import entity_key.bend as K

105# Extract only the slot index for trusted storage adapters. Generation and World
106# namespace are omitted; this projection must not replace handle validation.
107def handle_index(~S:Data,handle:Handle<S>) -> U32:
108  match handle:
109    case Handle{_,key}:K.index(key)

Uses (3)

Used by (11)