kfn-rs 0.3.0-alpha

Karaoke .kfn file IO library written in Rust.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::kfn_ini::eff::AnimEntry;

/// Representing the states, that the player has to implement and display.
#[derive(Debug, Clone, Default)]
pub struct Event {
    pub event_type: EventType,
    pub time: usize,
}


#[derive(Debug, Clone, Default)]
pub enum EventType {
    Background(AnimEntry),
    Animation(AnimEntry),
    Text(String),
    #[default]
    None,
}