Crate qua_format

Source
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§

CustomAudioSampleInfo
Custom audio samples that can be assigned to different hit objects
EditorLayerInfo
Editor layers to separate notes into different layers.
HitObjectInfo
A note to be played in-game
KeySoundInfo
Key sounds that are played for a specific note with a given volume
Qua
Represents the .qua file format
ScrollVelocityInfo
A moment in time where the scroll velocity changes
SoundEffectInfo
Sound effect played at a specific moment in time
TimingPointInfo
A moment in time where the BPM of a song changes

Enums§

GameMode
Game mode of the map
QuaError
Error while parsing a qua file
TimeSignature
Time signature of the song