Expose parent from RojoTree instances

This commit is contained in:
Lucien Greathouse
2019-10-03 15:53:50 -07:00
parent 923f661428
commit f0eb955628

View File

@@ -224,6 +224,10 @@ impl<'a> InstanceWithMeta<'a> {
self.instance.get_id()
}
pub fn parent(&self) -> Option<RbxId> {
self.instance.get_parent_id()
}
pub fn name(&self) -> &'a str {
&self.instance.name
}