def handle_index

bendvy-ecs-core@0.1.0.4 · world.bend:103

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

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

Uses (3)

Used by (5)