fn handle_node<I: IntoIterator<Item = Shared<GameObjectEntity<T>>>, T: TreeNode<I> + GameObjectDerived + FromGameObject>(
node: Shared<GameObjectEntity<T>>,
tree: &mut TidyTree,
stack: &mut Vec<(usize, Shared<GameObjectEntity<T>>)>,
storage: &mut HashMap<usize, (usize, Rc<str>, (f64, f64), (i32, i32), Option<Rc<str>>)>,
parent: usize,
fnt: &FontDesc<'_>,
)
Expand description
Handles node initialization within the graph. Tree is the tree object we are adding the node to, stack is the stack we are using to traverse the tree, storage is the hashmap we are using to store the node data, fnt is the font we are using to calculate the size of the node, and parent is the parent node id.