strafe-project/src/lib.rs

34 lines
451 B
Rust
Raw Normal View History

2024-01-16 03:09:34 +00:00
use std::io::Read;
2024-01-16 03:30:26 +00:00
pub mod file;
pub mod map;
pub mod bot;
pub mod demo;
2024-01-16 03:09:34 +00:00
2024-01-16 03:30:26 +00:00
pub enum Error{
Header(file::Error),
Map(map::Error),
Bot(bot::Error),
Demo(demo::Error),
}
pub enum SNF{
Map(map::Map),
Bot(bot::Bot),
Demo(demo::Demo),
}
pub fn read<R:Read>(input:R)->Result<SNF,Error>{
//let header:file::Header=input.read()?;
Err(Error::Header(file::Error::InvalidMagic))
2024-01-16 03:09:34 +00:00
}
#[cfg(test)]
mod tests {
//use super::*;
#[test]
fn test() {
}
}