This commit is contained in:
2026-01-21 17:20:14 +01:00
parent 0a14651835
commit 2f15bce223
5 changed files with 94 additions and 28 deletions

View File

@@ -2,7 +2,15 @@ use std::time::{Duration, Instant};
use crate::state::Modal;
pub struct Sparkle {
pub x: u16,
pub y: u16,
pub char_idx: usize,
pub life: u8,
}
pub struct UiState {
pub sparkles: Vec<Sparkle>,
pub status_message: Option<String>,
pub flash_until: Option<Instant>,
pub modal: Modal,
@@ -16,6 +24,7 @@ pub struct UiState {
impl Default for UiState {
fn default() -> Self {
Self {
sparkles: Vec::new(),
status_message: None,
flash_until: None,
modal: Modal::None,