//! Map store use crate::config::MapCfg; use std::{collections::BTreeMap, fs, path::Path}; pub struct MapStore { configs: BTreeMap, } impl MapStore { /// Load a set of map configs pub fn load_path(&mut self, path: &Path) { fs::read_dir(&path).unwrap().for_each(|d| { let name = d.unwrap().file_name().into_string().unwrap(); }); } }