Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
CompiledRegexRunner.cs
Go to the documentation of this file.
2
3internal sealed class CompiledRegexRunner : RegexRunner
4{
5 private readonly Action<RegexRunner> _goMethod;
6
7 private readonly Func<RegexRunner, bool> _findFirstCharMethod;
8
9 public CompiledRegexRunner(Action<RegexRunner> go, Func<RegexRunner, bool> findFirstChar, int trackCount)
10 {
11 _goMethod = go;
12 _findFirstCharMethod = findFirstChar;
13 runtrackcount = trackCount;
14 }
15
16 protected override void Go()
17 {
18 _goMethod(this);
19 }
20
21 protected override bool FindFirstChar()
22 {
23 return _findFirstCharMethod(this);
24 }
25
26 protected override void InitTrackCount()
27 {
28 }
29}
readonly Func< RegexRunner, bool > _findFirstCharMethod
CompiledRegexRunner(Action< RegexRunner > go, Func< RegexRunner, bool > findFirstChar, int trackCount)