pub fn collect_component_resource_imports( engine: &Engine, ty: &Component, resources: &mut BTreeMap<Box<str>, HashMap<Box<str>, ResourceType>>, )
Iterates the component type and collects all imported resource types