@tool YggdrasilLoader API
Singleton that loads YggdrasilRegistry and provides access to registered trees.
Properties
| Type | Name | Default |
|---|---|---|
| YggdrasilRegistry | _registry | null |
| Dictionary[String, String] | _path_to_tree | {} |
Methods
| Type | Name |
|---|---|
| YggdrasilRegistry | get_registry() |
| YggdrasilTree | load_tree(path: String) |
| void | add_tree_to_registry(group: YggdrasilGroup, tree: YggdrasilTree) |
Property Descriptions
YggdrasilRegistry _registry = null
Loaded tree registry.
Dictionary[String, String] _path_to_tree = {}
Maps lowercase
group/treepaths to tree resource paths.
Method Descriptions
YggdrasilRegistry get_registry()
Returns the loaded registry.
YggdrasilTree load_tree(path: String)
Loads a tree by case-insensitive
group/treepath, returningnulland pushing an error if the path is not registered or the resource fails to load.
void add_tree_to_registry(group: YggdrasilGroup, tree: YggdrasilTree)
Adds a lowercase
group/treemapping fortree.resource_pathto the runtime registry cache.