#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

#543 in GUI

Download history 48/week @ 2023-11-06 36/week @ 2023-11-13 54/week @ 2023-11-20 41/week @ 2023-11-27 30/week @ 2023-12-04 37/week @ 2023-12-11 48/week @ 2023-12-18 44/week @ 2023-12-25 27/week @ 2024-01-01 47/week @ 2024-01-08 44/week @ 2024-01-15 39/week @ 2024-01-22 29/week @ 2024-01-29 41/week @ 2024-02-05 59/week @ 2024-02-12 89/week @ 2024-02-19

218 downloads per month
Used in 2 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

~180KB