D
Dark
Guest
https://marketplace.yoyogames.com/assets/4011/ds_tree
This asset provides scripts for tree data structures implemented in native GML. The scripts contain autocomplete and argument information as well as a short description of what each does.
Example usage:
This asset provides scripts for tree data structures implemented in native GML. The scripts contain autocomplete and argument information as well as a short description of what each does.
Example usage:
Code:
root = ds_tree_create(10);
root_a = ds_tree_add(root, "A", 25.24);
root_b = ds_tree_add(root, "B", "foo");
ds_tree_add(root_b, "bar", -2);
show_debug_message(ds_tree_get_value(root));
show_debug_message(ds_tree_get_value(root_a));
show_debug_message(ds_tree_get_value(root_b));
show_debug_message(ds_tree_get_value(ds_tree_get_child(root_b, "bar")));