Skip to content

@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/tree paths 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/tree path, returning null and 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/tree mapping for tree.resource_path to the runtime registry cache.