mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-05-25 01:30:50 +00:00
Hooks and last works
This commit is contained in:
parent
f8cbd7ceb0
commit
c43f9067b8
5 changed files with 135 additions and 34 deletions
|
@ -118,6 +118,17 @@ impl fmt::Display for Mode {
|
|||
}
|
||||
}
|
||||
|
||||
impl Mode {
|
||||
/// Convert to oppai mode.
|
||||
pub fn to_oppai_mode(self) -> Option<oppai_rs::Mode> {
|
||||
Some(match self {
|
||||
Mode::Std => oppai_rs::Mode::Std,
|
||||
Mode::Taiko => oppai_rs::Mode::Taiko,
|
||||
_ => return None,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct Beatmap {
|
||||
// Beatmapset info
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue