a library to speed up the development of Fivem scripts and frameworks
fivem-ts - Documentation v0.7.5 • Docs
fivem-ts - Documentation v0.7.5 / Shared / TreeNode
Represents a node in a binary tree.
• T
The type of the value held by this node.
ITreeNode
<T
>new TreeNode<
T
>(value
,color
):TreeNode
<T
>
• value: T
• color: NodeColor
= NodeColor.RED
TreeNode
<T
>
color:
NodeColor
The color of the node, typically used in Red-Black Trees.
left:
TreeNode
<T
> =null
The left child node.
parent:
TreeNode
<T
> =null
The parent node.
right:
TreeNode
<T
> =null
The right child node.
value:
T
The value stored in the node.