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
// src/components/interact_event.rs

use crate::ecs::asset_id::AssetId;

/// Runtime-only event published by the camera controller when the interact
/// key fires on an Interactable entity: `target` is the entity's declared
/// name. BehaviorSystem reads these from its `Events<InteractEvent>` queue
/// each step (one tick after the press, since the controller runs later in
/// the schedule). World authors never declare this type directly.
#[derive(Debug, Clone, Copy)]
pub struct InteractEvent {
    /// The interacted entity's declared name.
    pub target: AssetId,
}