wip
This commit is contained in:
parent
3434cd394a
commit
a18c56f235
12
src/map.rs
12
src/map.rs
@ -3,7 +3,7 @@ use std::collections::HashMap;
|
||||
|
||||
use crate::newtypes;
|
||||
use crate::file::BlockId;
|
||||
use binrw::{binrw,BinReaderExt};
|
||||
use binrw::{binrw,BinReaderExt,BinWriterExt};
|
||||
use strafesnet_common::model;
|
||||
use strafesnet_common::aabb::Aabb;
|
||||
use strafesnet_common::bvh::BvhNode;
|
||||
@ -284,3 +284,13 @@ impl<R:BinReaderExt> StreamableMap<R>{
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
/// TODO: Optionally provide a bot that describes the path through the map
|
||||
/// otherwise sort by distance to start zone
|
||||
pub fn write_map<W:BinWriterExt>(mut writer:W,map:strafesnet_common::map::CompleteMap)->Result<(),Error>{
|
||||
//build blocks
|
||||
//build header
|
||||
//write header
|
||||
//write blocks
|
||||
Ok(())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user