blob: 85c5e36ef93b2db6d17838efd1d71dd71f32a0cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//! 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();
});
}
}
|