mirror of
https://github.com/lifegpc/msg-tool.git
synced 2026-06-07 21:38:58 +08:00
Add new dat script
This commit is contained in:
@@ -7,10 +7,14 @@ pub trait ReadSeek: Read + Seek + std::fmt::Debug {}
|
||||
|
||||
pub trait WriteSeek: Write + Seek {}
|
||||
|
||||
pub trait AnyDebug: std::fmt::Debug + std::any::Any {}
|
||||
|
||||
impl<T: Read + Seek + std::fmt::Debug> ReadSeek for T {}
|
||||
|
||||
impl<T: Write + Seek> WriteSeek for T {}
|
||||
|
||||
impl<T: std::fmt::Debug + std::any::Any> AnyDebug for T {}
|
||||
|
||||
pub trait ScriptBuilder: std::fmt::Debug {
|
||||
fn default_encoding(&self) -> Encoding;
|
||||
|
||||
@@ -368,6 +372,10 @@ pub trait Script: std::fmt::Debug + std::any::Any {
|
||||
let f = std::io::BufWriter::new(f);
|
||||
self.import_multi_image(data, Box::new(f))
|
||||
}
|
||||
|
||||
fn extra_info<'a>(&'a self) -> Option<Box<dyn AnyDebug + 'a>> {
|
||||
None
|
||||
}
|
||||
}
|
||||
|
||||
pub trait Archive {
|
||||
|
||||
Reference in New Issue
Block a user