Skip to main content

concinnity_core/components/
children.rs

1// src/components/children.rs
2
3use crate::memory::InlineVec;
4
5use crate::ecs::Entity;
6
7/// The entities that name this entity as their `Parent`.
8///
9/// Runtime-only, maintained automatically alongside `Parent` so a transform-
10/// propagation pass can walk the hierarchy top-down and so despawning a parent
11/// can cascade to its children.
12///
13/// The list is held inline up to one child, which most parents have.
14#[derive(Debug, Clone, Default)]
15pub struct Children(pub InlineVec<Entity>);