concinnity-core 0.19.16

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/despawn_request.rs

use crate::components::EntityTarget;

/// Runtime-only event requesting that an authored placement be removed from the
/// world at runtime. A named target needs no live Entity handle; an
/// entity-addressed one reaches placements that never had a name. GraphicsSystem
/// reads these from its `Events<DespawnRequest>` queue each step, resolves the
/// target to its entity, hides that entity's GPU draw slots, and despawns it and
/// its descendants. World authors never declare this type directly.
#[derive(Debug, Clone, Copy, Default)]
pub struct DespawnRequest {
    /// The placement to remove, by name or entity.
    pub target: EntityTarget,
}