Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SelectorActiveAxis.cs
Go to the documentation of this file.
2
3namespace System.Xml.Schema;
4
5internal sealed class SelectorActiveAxis : ActiveAxis
6{
7 private readonly ConstraintStruct _cs;
8
9 private readonly ArrayList _KSs;
10
11 private int _KSpointer;
12
13 public int lastDepth
14 {
15 get
16 {
17 if (_KSpointer != 0)
18 {
19 return ((KSStruct)_KSs[_KSpointer - 1]).depth;
20 }
21 return -1;
22 }
23 }
24
31
32 public override bool EndElement(string localname, string URN)
33 {
34 base.EndElement(localname, URN);
35 if (_KSpointer > 0 && base.CurrentDepth == lastDepth)
36 {
37 return true;
38 }
39 return false;
40 }
41
42 public int PushKS(int errline, int errcol)
43 {
46 if (_KSpointer < _KSs.Count)
47 {
49 kSStruct.ks = ks;
50 for (int i = 0; i < _cs.TableDim; i++)
51 {
52 kSStruct.fields[i].Reactivate(ks);
53 }
54 }
55 else
56 {
57 kSStruct = new KSStruct(ks, _cs.TableDim);
58 for (int j = 0; j < _cs.TableDim; j++)
59 {
60 kSStruct.fields[j] = new LocatedActiveAxis(_cs.constraint.Fields[j], ks, j);
61 _cs.axisFields.Add(kSStruct.fields[j]);
62 }
64 }
66 return _KSpointer++;
67 }
68
70 {
71 return ((KSStruct)_KSs[--_KSpointer]).ks;
72 }
73}
virtual int Add(object? value)
CompiledIdentityConstraint constraint
int PushKS(int errline, int errcol)
override bool EndElement(string localname, string URN)
SelectorActiveAxis(Asttree axisTree, ConstraintStruct cs)