use crate::enums::GameMode;
#[derive(Debug, Clone)]
pub struct MapMetadata {
pub audio_file: String,
pub song_preview_time: i32,
pub background_file: String,
pub banner_file: String,
pub map_id: i32,
pub map_set_id: i32,
pub title: String,
pub artist: String,
pub source: String,
pub tags: String,
pub creator: String,
pub difficulty_name: String,
pub description: String,
pub genre: String,
pub legacy_ln_rendering: bool,
pub bpm_does_not_affect_scroll_velocity: bool,
pub has_scratch_key: bool,
pub mode: GameMode,
pub randomize_modifier_seed: i32,
}
impl Default for MapMetadata {
fn default() -> Self {
Self {
audio_file: String::new(),
song_preview_time: 0,
background_file: String::new(),
banner_file: String::new(),
map_id: -1,
map_set_id: -1,
title: String::new(),
artist: String::new(),
source: String::new(),
tags: String::new(),
creator: String::new(),
difficulty_name: String::new(),
description: String::new(),
genre: String::new(),
legacy_ln_rendering: false,
bpm_does_not_affect_scroll_velocity: false,
has_scratch_key: false,
mode: GameMode::Keys4,
randomize_modifier_seed: -1,
}
}
}