setup propertytree from reader?
This commit is contained in:
parent
5c71e6cb22
commit
99e6d7e325
1 changed files with 10 additions and 1 deletions
11
src/lib.rs
11
src/lib.rs
|
@ -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)?,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue