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

◆ ReplaceNode()

void System.Collections.Generic.SortedSet< T >.ReplaceNode ( Node match,
Node parentOfMatch,
Node successor,
Node parentOfSuccessor )
inlineprivateinherited

Definition at line 1205 of file SortedSet.cs.

1206 {
1207 if (successor == match)
1208 {
1209 successor = match.Left;
1210 }
1211 else
1212 {
1213 successor.Right?.ColorBlack();
1214 if (parentOfSuccessor != match)
1215 {
1217 successor.Right = match.Right;
1218 }
1219 successor.Left = match.Left;
1220 }
1221 if (successor != null)
1222 {
1223 successor.Color = match.Color;
1224 }
1226 }
void ReplaceChildOrRoot(Node parent, Node child, Node newChild)

References System.Runtime.Serialization.Dictionary, System.match, and System.Collections.Generic.SortedSet< T >.ReplaceChildOrRoot().

Referenced by System.Collections.Generic.SortedSet< T >.DoRemove().