get_full_name

This commit is contained in:
Quaternions 2023-09-12 13:57:47 -07:00
parent 7234065bd8
commit 6ef8fd2f69

View File

@ -37,6 +37,17 @@ fn class_is_a(class: &str, superclass: &str) -> bool {
return false 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
//download list of maps to maps/unprocessed //download list of maps to maps/unprocessed
//scan (scripts) //scan (scripts)