mirror of
https://github.com/lifegpc/msg-tool.git
synced 2026-06-06 21:08:48 +08:00
Add is_audio to ScriptBuilder (#12)
This commit is contained in:
@@ -124,6 +124,11 @@ pub trait ScriptBuilder: std::fmt::Debug {
|
||||
false
|
||||
}
|
||||
|
||||
/// Returns true if this script is an audio.
|
||||
fn is_audio(&self) -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
/// Creates an archive with the given files.
|
||||
///
|
||||
/// * `filename` - The path of the archive file to create.
|
||||
|
||||
@@ -73,6 +73,10 @@ impl ScriptBuilder for BgiAudioBuilder {
|
||||
None
|
||||
}
|
||||
}
|
||||
|
||||
fn is_audio(&self) -> bool {
|
||||
true
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
|
||||
@@ -79,6 +79,10 @@ impl ScriptBuilder for PcmBuilder {
|
||||
None
|
||||
}
|
||||
}
|
||||
|
||||
fn is_audio(&self) -> bool {
|
||||
true
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, IntEnum)]
|
||||
|
||||
Reference in New Issue
Block a user