forked from StrafesNET/map-tool
get_full_name
This commit is contained in:
parent
7234065bd8
commit
6ef8fd2f69
11
src/main.rs
11
src/main.rs
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user