Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SubstitutionList.cs
Go to the documentation of this file.
2
3namespace System.Xml.Xsl.Qil;
4
5internal sealed class SubstitutionList
6{
7 private readonly ArrayList _s;
8
10 {
11 _s = new ArrayList(4);
12 }
13
15 {
16 _s.Add(find);
17 _s.Add(replace);
18 }
19
21 {
22 _s.RemoveRange(_s.Count - 2, 2);
23 }
24
26 {
27 for (int num = _s.Count - 2; num >= 0; num -= 2)
28 {
29 if (_s[num] == n)
30 {
31 return (QilNode)_s[num + 1];
32 }
33 }
34 return null;
35 }
36}
virtual int Add(object? value)
virtual void RemoveRange(int index, int count)
void AddSubstitutionPair(QilNode find, QilNode replace)