concinnity-core 0.18.64

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

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

/// Runtime-only event sent by UiInputSystem whenever a screen reaches the top
/// of the stack: the initial screen at world start, a `screen:show` /
/// `screen:push` / `screen:toggle` navigation, or a pop revealing the screen
/// beneath. Read by AudioSystem to fire AudioCues. World authors never declare
/// this type directly.
#[derive(Debug, Clone, Copy, Default)]
pub struct ScreenShown {
    /// The screen that reached the top of the stack.
    pub screen: AssetId,
}