Skip to main content

concinnity_core/components/
screen_shown.rs

1// src/components/screen_shown.rs
2
3use crate::ecs::asset_id::AssetId;
4
5/// Runtime-only event sent by UiInputSystem whenever a screen reaches the top
6/// of the stack: the initial screen at world start, a `screen:show` /
7/// `screen:push` / `screen:toggle` navigation, or a pop revealing the screen
8/// beneath. Read by AudioSystem to fire AudioCues. World authors never declare
9/// this type directly.
10#[derive(Debug, Clone, Copy, Default)]
11pub struct ScreenShown {
12    /// The screen that reached the top of the stack.
13    pub screen: AssetId,
14}