Expand description
The root file of the library.
Contains the prelude module which you will probably want to import from.
A simple node implementation will look like the following:
use node_tree::prelude::*;
#[derive(Debug, Abstract)]
pub struct NodeA {
base: NodeBase // Required for Nodes.
}
impl NodeA {
fn new(name: String) -> Self {
NodeA { base: NodeBase::new(name) }
}
}
impl Node for NodeA {
// feel free to implement `ready()`, `process()`, `terminal()` and/or `process_mode()`
// here.
}Modules§
- Contains everything you’ll need to create and handle Nodes and NodeTrees. You’ll probably want to import all from this module.