Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
FunctionFocus.cs
Go to the documentation of this file.
4
5namespace System.Xml.Xsl.Xslt;
6
7internal struct FunctionFocus : IFocus
8{
9 private bool _isSet;
10
12
14
16
17 public bool IsFocusSet => _isSet;
18
20 {
21 int num = 0;
22 if ((flags & XslFlags.Current) != 0)
23 {
24 _current = (QilParameter)args[num++];
25 }
26 if ((flags & XslFlags.Position) != 0)
27 {
28 _position = (QilParameter)args[num++];
29 }
30 if ((flags & XslFlags.Last) != 0)
31 {
32 _last = (QilParameter)args[num++];
33 }
34 _isSet = true;
35 }
36
37 public void StopFocus()
38 {
39 _isSet = false;
40 _current = (_position = (_last = null));
41 }
42
44 {
45 return _current;
46 }
47
49 {
50 return _position;
51 }
52
54 {
55 return _last;
56 }
57}
void StartFocus(IList< QilNode > args, XslFlags flags)