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

◆ MoveToParent()

void System.Xml.Schema.AxisElement.MoveToParent ( int depth,
ForwardAxis parent )
inlinepackage

Definition at line 27 of file AxisElement.cs.

28 {
29 if (depth == curDepth - 1)
30 {
31 if (curNode.Input == parent.RootNode && parent.IsDss)
32 {
33 curNode = parent.RootNode;
34 rootDepth = (curDepth = -1);
35 }
36 else if (curNode.Input != null)
37 {
38 curNode = (DoubleLinkAxis)curNode.Input;
39 curDepth--;
40 }
41 }
42 else if (depth == curDepth && isMatch)
43 {
44 isMatch = false;
45 }
46 }

References System.Xml.Schema.AxisElement.curDepth, System.Xml.Schema.AxisElement.curNode, MS.Internal.Xml.XPath.Axis.Input, System.Xml.Schema.ForwardAxis.IsDss, System.Xml.Schema.AxisElement.isMatch, System.Xml.Schema.AxisElement.rootDepth, and System.Xml.Schema.ForwardAxis.RootNode.