Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Operand.cs
Go to the documentation of this file.
2
4
5internal sealed class Operand : AstNode
6{
7 private readonly XPathResultType _type;
8
9 private readonly object _val;
10
11 public override AstType Type => AstType.ConstantOperand;
12
13 public override XPathResultType ReturnType => _type;
14
15 public object OperandValue => _val;
16
17 public Operand(string val)
18 {
19 _type = XPathResultType.String;
20 _val = val;
21 }
22
23 public Operand(double val)
24 {
25 _type = XPathResultType.Number;
26 _val = val;
27 }
28}
readonly object _val
Definition Operand.cs:9
override XPathResultType ReturnType
Definition Operand.cs:13
readonly XPathResultType _type
Definition Operand.cs:7