diff --git a/src/main.rs b/src/main.rs index c2f0243..a8aa286 100644 --- a/src/main.rs +++ b/src/main.rs @@ -37,6 +37,17 @@ fn class_is_a(class: &str, superclass: &str) -> bool { return false } +fn get_full_name(dom:&rbx_dom_weak::WeakDom,instance:&rbx_dom_weak::Instance) -> String{ + let mut full_name=instance.name.clone(); + let mut pref=instance.parent(); + while let Some(parent)=dom.get_by_ref(pref){ + full_name.insert(0, '.'); + full_name.insert_str(0, &parent.name); + pref=parent.parent(); + } + full_name +} + //download //download list of maps to maps/unprocessed //scan (scripts)