node_tree 0.15.0

An extendable scene graph made up of autonomous execution services known as nodes organized in a tree of processes. Inspired by Godot!
Documentation
use node_tree::prelude::*;
use node_tree::trees::tree_simple::TreeSimple;


class! {
    declare Singleton;

    hk ready(&mut self) {
        let status: bool = self.register_as_singleton("TheOneAndOnly".to_string());
        assert_eq!(status, true);
        self.tree_mut().unwrap().terminate();
    }
}


#[test]
fn test_singleton_registration() {
    let     singleton: Singleton       = Singleton::new();
    let mut tree:      Box<TreeSimple> = TreeSimple::new(singleton, LoggerVerbosity::NoDebug);

    while !tree.process().has_terminated() {}
}