Add FieldLoader and linter support for BooleanExpression.

This commit is contained in:
Paul Chote
2016-11-13 15:10:39 +00:00
parent 23f4ae5027
commit 1cc7944437
3 changed files with 28 additions and 1 deletions

View File

@@ -18,6 +18,7 @@ namespace OpenRA.Support
{
public class BooleanExpression
{
public readonly string Expression;
readonly HashSet<string> variables = new HashSet<string>();
public IEnumerable<string> Variables { get { return variables; } }
@@ -68,6 +69,7 @@ namespace OpenRA.Support
public BooleanExpression(string expression)
{
Expression = expression;
var openParens = 0;
var closeParens = 0;
var tokens = new List<Token>();