Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
BaseTreeIterator.cs
Go to the documentation of this file.
2
3namespace System.Xml;
4
5internal abstract class BaseTreeIterator
6{
8
9 internal abstract XmlNode CurrentNode { get; }
10
15
16 [MemberNotNullWhen(true, "CurrentNode")]
17 internal abstract bool Next();
18
19 [MemberNotNullWhen(true, "CurrentNode")]
20 internal abstract bool NextRight();
21
22 [MemberNotNullWhen(true, "CurrentNode")]
23 internal bool NextRowElement()
24 {
25 while (Next())
26 {
27 if (OnRowElement())
28 {
29 return true;
30 }
31 }
32 return false;
33 }
34
35 [MemberNotNullWhen(true, "CurrentNode")]
36 internal bool NextRightRowElement()
37 {
38 if (NextRight())
39 {
40 if (OnRowElement())
41 {
42 return true;
43 }
44 return NextRowElement();
45 }
46 return false;
47 }
48
49 [MemberNotNullWhen(true, "CurrentNode")]
50 internal bool OnRowElement()
51 {
53 {
54 return xmlBoundElement.Row != null;
55 }
56 return false;
57 }
58}
BaseTreeIterator(DataSetMapper mapper)