def read

bendvy-ecs-core@0.1.0.3 · capabilities.bend:62

import bendvy-ecs-core@0.1.0.3/capabilities.bend as Capabilities
import Base
import component.bend as Cmp

62# Invoke a declared component read, returning the owner and Access<V>.
63# No extra validation is added beyond the bound get operation.
64def read(~H: Type,~V: Data,~cap: Read<H,V>,ctx: H) -> H & Cmp.Access<V>:
65  read_field(~H,~V,cap)(ctx)

Uses (4)

Used by (1)