strafe-project/src/lib.rs

34 lines
481 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{
2024-01-18 23:33:22 +00:00
Map(map::StreamableMap),
Bot(bot::StreamableBot),
Demo(demo::StreamableDemo),
2024-01-16 03:30:26 +00:00
}
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() {
}
}