def handle_index
import bendvy-ecs-core@0.1.0.4/world.bend as Worldimport 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)