Rename BooleanExpression => ConditionExpression
This commit is contained in:
@@ -398,13 +398,13 @@ namespace OpenRA
|
||||
|
||||
return InvalidValueAction(value, fieldType, fieldName);
|
||||
}
|
||||
else if (fieldType == typeof(BooleanExpression))
|
||||
else if (fieldType == typeof(ConditionExpression))
|
||||
{
|
||||
if (value != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
return new BooleanExpression(value);
|
||||
return new ConditionExpression(value);
|
||||
}
|
||||
catch (InvalidDataException e)
|
||||
{
|
||||
|
||||
@@ -241,7 +241,7 @@
|
||||
<Compile Include="Primitives\float3.cs" />
|
||||
<Compile Include="InstalledMods.cs" />
|
||||
<Compile Include="CryptoUtil.cs" />
|
||||
<Compile Include="Support\BooleanExpression.cs" />
|
||||
<Compile Include="Support\ConditionExpression.cs" />
|
||||
<Compile Include="ExternalMods.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -16,7 +16,7 @@ using System.Linq;
|
||||
|
||||
namespace OpenRA.Support
|
||||
{
|
||||
public class BooleanExpression
|
||||
public class ConditionExpression
|
||||
{
|
||||
public readonly string Expression;
|
||||
readonly HashSet<string> variables = new HashSet<string>();
|
||||
@@ -67,7 +67,7 @@ namespace OpenRA.Support
|
||||
class NotEqualsToken : BinaryOperationToken { public NotEqualsToken(int index) : base("!=", index) { } }
|
||||
class NotToken : UnaryOperationToken { public NotToken(int index) : base("!", index) { } }
|
||||
|
||||
public BooleanExpression(string expression)
|
||||
public ConditionExpression(string expression)
|
||||
{
|
||||
Expression = expression;
|
||||
var openParens = 0;
|
||||
Reference in New Issue
Block a user