Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
CommentAction.cs
Go to the documentation of this file.
2
4
6{
7 internal override void Compile(Compiler compiler)
8 {
10 if (compiler.Recurse())
11 {
13 compiler.ToParent();
14 }
15 }
16
17 internal override void Execute(Processor processor, ActionFrame frame)
18 {
19 switch (frame.State)
20 {
21 case 0:
22 if (processor.BeginEvent(XPathNodeType.Comment, string.Empty, string.Empty, string.Empty, empty: false))
23 {
24 processor.PushActionFrame(frame);
25 frame.State = 1;
26 }
27 break;
28 case 1:
29 if (processor.EndEvent(XPathNodeType.Comment))
30 {
31 frame.Finished();
32 }
33 break;
34 }
35 }
36}
override void Compile(Compiler compiler)
override void Execute(Processor processor, ActionFrame frame)
void CompileAttributes(Compiler compiler)