Skip to main content

Module info

Module info 

Source
Expand description

Plain-data summaries of a world’s shape.

A world stores components behind type-erased columns, so a caller that only has a scope can count entities and archetypes but cannot name a component: the names live in a side table keyed by TypeId. These structures put a name back on every column and borrow nothing from the world, which is what a bridge that reports a world over JSON needs.

Every count here is what one scope sees, not what the world holds: a scope of a scene reports that scene. The two root entities are reported by handle so that a caller can tell why the count is two higher than the content.

They are deliberately shallow. Nothing here reaches into a component’s own fields – that is the caller’s business, and a caller that wants it derives its own reflection.

Re-exports§

use crate::entity::Entity; 🔒

Structs§

ArchetypeInfo
One archetype: its id, how many of its rows a scope sees, and its component names.
EntityInfo
A live entity’s location and component names.
WorldInfo
A scope’s high-level shape.