use std::io::Read; pub mod file; pub mod map; pub mod bot; pub mod demo; pub enum Error{ Header(file::Error), Map(map::Error), Bot(bot::Error), Demo(demo::Error), } pub enum SNF{ Map(map::StreamableMap), Bot(bot::StreamableBot), Demo(demo::StreamableDemo), } pub fn read(input:R)->Result{ //let header:file::Header=input.read()?; Err(Error::Header(file::Error::InvalidMagic)) } #[cfg(test)] mod tests { //use super::*; #[test] fn test() { } }