Expand description
Display heuristics — icon, type tag, category labels for the Inspector.
Pure functions over InspectedEntity / domain tag — no state. Component
authors that want a different icon / tag for their type can extend the
match arms here (or, in a later iteration, register through the
inventory registry that already carries per-component metadata).
Functions§
- category_
label_ for_ tag - Add-Component menu sub-header label per domain tag.
- icon_
for_ domain_ tag - Per-domain card icon. Domain tags come from the macro-generated
ComponentRegistration::domainfield. - pick_
icon - Picks an Inspector header icon based on the most “interesting” component on the entity. The fallback is a cube (mesh-like).
- pick_
type_ tag - Picks a short type tag for the Inspector meta row.