Expand description
Parse .qua files into structs
The .qua file format uses the YAML format, so serde_yaml is used for parsing.
§Examples
use qua_format::Qua;
use std::fs::File;
let path = "123.qua";
let mut qua = Qua::from_file(path).expect("Could not parse qua file");
qua.title = "Never Gonna Give You Up".to_string();
let new_file = File::create("test.qua").expect("Could not create new file");
qua.to_writer(new_file).expect("Could not write to file");
Structs§
- Custom
Audio Sample Info - Custom audio samples that can be assigned to different hit objects
- Editor
Layer Info - Editor layers to separate notes into different layers.
- HitObject
Info - A note to be played in-game
- KeySound
Info - Key sounds that are played for a specific note with a given volume
- Qua
- Represents the .qua file format
- Scroll
Velocity Info - A moment in time where the scroll velocity changes
- Sound
Effect Info - Sound effect played at a specific moment in time
- Timing
Point Info - A moment in time where the BPM of a song changes
Enums§
- Game
Mode - Game mode of the map
- QuaError
- Error while parsing a qua file
- Time
Signature - Time signature of the song