This commit is contained in:
Quaternions 2024-07-24 14:38:58 -07:00
parent 3434cd394a
commit a18c56f235

View File

@ -3,7 +3,7 @@ use std::collections::HashMap;
use crate::newtypes; use crate::newtypes;
use crate::file::BlockId; use crate::file::BlockId;
use binrw::{binrw,BinReaderExt}; use binrw::{binrw,BinReaderExt,BinWriterExt};
use strafesnet_common::model; use strafesnet_common::model;
use strafesnet_common::aabb::Aabb; use strafesnet_common::aabb::Aabb;
use strafesnet_common::bvh::BvhNode; 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(())
}