Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ UpdateNodeKey()

void System.Data.RBTree< K >.UpdateNodeKey ( K currentKey,
K newKey )
inline

Definition at line 736 of file RBTree.cs.

737 {
738 NodePath nodeByKey = GetNodeByKey(currentKey);
739 if (Parent(nodeByKey._nodeID) == 0 && nodeByKey._nodeID != root)
740 {
741 SetKey(nodeByKey._mainTreeNodeID, newKey);
742 }
743 SetKey(nodeByKey._nodeID, newKey);
744 }
NodePath GetNodeByKey(K key)
Definition RBTree.cs:1062
void SetKey(int nodeId, K key)
Definition RBTree.cs:1346

References System.Data.RBTree< K >.GetNodeByKey(), System.Data.Parent, System.Data.RBTree< K >.root, and System.Data.RBTree< K >.SetKey().

Referenced by System.Data.Index.RecordStateChanged().