Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
TemplateLookupAction.cs
Go to the documentation of this file.
2
4
6{
8
10
16
17 internal override void Execute(Processor processor, ActionFrame frame)
18 {
19 Action action = null;
20 action = ((!(mode != null)) ? ((importsOf == null) ? processor.Stylesheet.FindTemplate(processor, frame.Node) : importsOf.FindTemplateImports(processor, frame.Node)) : ((importsOf == null) ? processor.Stylesheet.FindTemplate(processor, frame.Node, mode) : importsOf.FindTemplateImports(processor, frame.Node, mode)));
21 if (action == null)
22 {
24 }
25 if (action != null)
26 {
27 frame.SetAction(action);
28 }
29 else
30 {
31 frame.Finished();
32 }
33 }
34
36 {
37 Action result = null;
38 switch (node.NodeType)
39 {
40 case XPathNodeType.Root:
41 case XPathNodeType.Element:
43 break;
44 case XPathNodeType.Attribute:
45 case XPathNodeType.Text:
46 case XPathNodeType.SignificantWhitespace:
47 case XPathNodeType.Whitespace:
48 result = ValueOfAction.BuiltInRule();
49 break;
50 }
51 return result;
52 }
53}
TemplateAction FindTemplateImports(Processor processor, XPathNavigator navigator, XmlQualifiedName mode)
void Initialize(XmlQualifiedName mode, Stylesheet importsOf)
override void Execute(Processor processor, ActionFrame frame)