Expand description
“+ Add Component” menu — bucketed by SemanticDomain (live World).
Walks the inventory of ComponentRegistration to enumerate every
component the engine knows about, filters out inherent-on-vessel
components plus those already on the entity, and groups what’s left
by domain tag.
Constants§
- SURFACED_
ELSEWHERE - Components the editor renders somewhere other than as an inspector card, so offering them in “+ Add Component” would be redundant.
- UI_
DOMAIN_ 🔒TAG SemanticDomain::Uias the small integer tag the editor carries in [ComponentJson::domain] (seeops::domain_tag).
Functions§
- is_
author_ facing - Whether the inspector should treat
type_nameas the author’s own data — offering it in “+ Add Component” and rendering it as an editable card. - render_
add_ component - Render the “+ Add Component” menu button. Selecting a component
queues
EditorState::pending_add_componentfor the next frame.