concinnity-core 0.19.1

Runtime vocabulary for the Concinnity engine: GPU layouts, ECS components, registry, CPU kernels
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// src/components/children.rs

use crate::memory::InlineVec;

use crate::ecs::Entity;

/// The entities that name this entity as their `Parent`.
///
/// Runtime-only, maintained automatically alongside `Parent` so a transform-
/// propagation pass can walk the hierarchy top-down and so despawning a parent
/// can cascade to its children.
///
/// The list is held inline up to one child, which most parents have.
#[derive(Debug, Clone, Default)]
pub struct Children(pub InlineVec<Entity>);