Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XPathDocumentKindChildIterator.cs
Go to the documentation of this file.
2
4
6{
7 private readonly XPathNodeType _typ;
8
10 : base(parent)
11 {
12 _typ = typ;
13 }
14
16 : base(iter)
17 {
18 _typ = iter._typ;
19 }
20
21 public override XPathNodeIterator Clone()
22 {
23 return new XPathDocumentKindChildIterator(this);
24 }
25
26 public override bool MoveNext()
27 {
28 if (pos == 0)
29 {
30 if (!ctxt.MoveToChild(_typ))
31 {
32 return false;
33 }
34 }
35 else if (!ctxt.MoveToNext(_typ))
36 {
37 return false;
38 }
39 pos++;
40 return true;
41 }
42}
XPathDocumentKindChildIterator(XPathDocumentNavigator parent, XPathNodeType typ)
override bool MoveToChild(string localName, string namespaceURI)