Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
PrecedingIterator.cs
Go to the documentation of this file.
3
5
7public struct PrecedingIterator
8{
10
12
14
16 {
19 _stack.Reset();
20 if (!_navCurrent.IsSamePosition(context))
21 {
22 if (!filter.IsFiltered(_navCurrent))
23 {
25 }
26 while (filter.MoveToFollowing(_navCurrent, context))
27 {
29 }
30 }
31 }
32
33 public bool MoveNext()
34 {
35 if (_stack.IsEmpty)
36 {
37 return false;
38 }
40 return true;
41 }
42}
bool IsSamePosition(XPathNavigator other)
static XPathNavigator SyncToNavigator(XPathNavigator navigatorThis, XPathNavigator navigatorThat)
void Create(XPathNavigator context, XmlNavigatorFilter filter)