setup propertytree from reader?

This commit is contained in:
Zynh0722 2023-11-23 20:00:24 -08:00
parent 5c71e6cb22
commit 99e6d7e325

View file

@ -15,6 +15,15 @@ pub enum PropertyTree {
Dictionary(HashMap<String, PropertyTree>),
}
impl PropertyTree {
pub fn from_reader<R>(reader: &mut R) -> anyhow::Result<PropertyTree>
where
R: Read,
{
Ok(PropertyTree::None)
}
}
#[derive(Debug)]
pub struct ModSettings {
pub version: [u16; 4],
@ -56,7 +65,7 @@ impl ModSettings {
Ok(ModSettings {
version,
data: PropertyTree::None,
data: PropertyTree::from_reader(&mut reader)?,
})
}
}