You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
396 B
17 lines
396 B
//! Map store
|
|
|
|
use crate::config::MapCfg;
|
|
use std::{collections::BTreeMap, fs, path::Path};
|
|
|
|
pub struct MapStore {
|
|
configs: BTreeMap<String, MapCfg>,
|
|
}
|
|
|
|
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();
|
|
});
|
|
}
|
|
}
|
|
|