concinnity_core/components/interact_event.rs
1// src/components/interact_event.rs
2
3use crate::ecs::asset_id::AssetId;
4
5/// Runtime-only event published by the camera controller when the interact
6/// key fires on an Interactable entity: `target` is the entity's declared
7/// name. BehaviorSystem reads these from its `Events<InteractEvent>` queue
8/// each step (one tick after the press, since the controller runs later in
9/// the schedule). World authors never declare this type directly.
10#[derive(Debug, Clone, Copy)]
11pub struct InteractEvent {
12 /// The interacted entity's declared name.
13 pub target: AssetId,
14}