rocketsplash-formats 0.2.2

Shared data types and serialization formats for Rocketsplash TUI animations
Documentation
// <FILE>crates/rocketsplash-formats/src/animation.rs</FILE>
// <DESC>Optional animation payload for splash screens</DESC>
// <VERS>VERSION: 1.0.0</VERS>
// <WCTX>Runtime library implementation</WCTX>
// <CLOG>Add AnimationData structures for future playback</CLOG>

use serde::{Deserialize, Serialize};

use crate::Cell;

#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct AnimationFrame {
    pub duration_ms: u32,
    pub cells: Vec<Cell>,
}

#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct AnimationData {
    pub looped: bool,
    pub frames: Vec<AnimationFrame>,
}

// <FILE>crates/rocketsplash-formats/src/animation.rs</FILE>
// <VERS>END OF VERSION: 1.0.0</VERS>