View Single Post
commonbullet
Veteran Member
Join Date: Oct 2005
Old 04-07-2007 , 15:09   Re: Module: Vdf trees - 1.03
Reply With Quote #18

1.03 Update

Lots of new stuff + fixes:

- It now requires tags for trees, nodes, and search. It tends to get safer from mistakes that could cause crashes, and it makes the source in pawn more clear (I think).
They are: VdfTree, VdfNode, VdfSearch; check the examples.

- Search may perform entire tree scanning by setting "*" as the look up string (this feature is useful to parse stuff).
- New find_in_branch native to look up a node in a branch
- New ‘shell’ sort nodes native, vdf_sort_branch. Sorts might be performed to nodes based on key/values (as strings or as numbers).
- New move nodes native (only moves nodes that are in the same tree): vdf_move_to_branch, vdf_move_as_child

- Included some ‘sugar’ to make it easier to lazy coders like me:
- vdf_get_node_value_num, vdf_get_node_value_float, vdf_get_node_value_vector – value string are converted to these ‘types’.
- vdf_set_node_value_num, vdf_set_node_value_float, vdf_set_node_value_vector – converts these ‘types’ to a string and stores in node value.

- Fixed append node bug, and some minor stuff.

Thanks to sawce for helping me with the code and for the Linux build.
commonbullet is offline
Send a message via ICQ to commonbullet Send a message via MSN to commonbullet