#ecs #tree

orbtk-tree

Tree structure based on DCES

3 releases

0.3.1-alpha3 Aug 13, 2020
0.3.1-alpha2 Apr 22, 2020
0.3.0-alpha1 Nov 15, 2019

#153 in GUI

Download history 61/week @ 2021-04-12 78/week @ 2021-04-19 65/week @ 2021-04-26 45/week @ 2021-05-03 67/week @ 2021-05-10 41/week @ 2021-05-17 33/week @ 2021-05-24 45/week @ 2021-05-31 49/week @ 2021-06-07 54/week @ 2021-06-14 45/week @ 2021-06-21 43/week @ 2021-06-28 51/week @ 2021-07-05 48/week @ 2021-07-12 49/week @ 2021-07-19 42/week @ 2021-07-26

233 downloads per month
Used in 3 crates (via orbtk-api)

MIT license

12KB
251 lines

orbtk-tree

Entity component system based tree entity container. It's part of OrbTk - The Rust UI-Toolkit.

Build and test MIT licensed

Dependencies

  • dces (MIT): Entity Component System

License

Licensed under MIT license (LICENSE).


lib.rs:

This crate provides a index (entity) based tree structure compatible to the DCES Entity Component System. The tree could be used as entity storage.

Example

Basic usage of the tree:


use orbtk_tree::prelude::*;

let mut tree = Tree::new();
tree.register_node(0);
tree.register_node(1);
tree.append_child(0, 1);

Dependencies

~52KB