Skip to main content

Module component_ops

Module component_ops 

Source
Expand description

§SDK Generic Component Operations API

Provides static functions for type-erased component operations: register, add, remove, has, get, get_mut, and batch variants. These are annotated with #[goud_api] to auto-generate FFI wrappers that replace the hand-written functions in ffi/component.rs.

All methods are static (no self receiver) because they operate on the global per-context component storage, not on a GoudGame instance.

The raw component storage and type registry internals remain in ffi/component.rs and are accessed via public helper functions.

Structs§

ComponentOps
Zero-sized type hosting generic component FFI operations.