Rename ConditionExpression => VariableExpression
This commit is contained in:
@@ -398,13 +398,13 @@ namespace OpenRA
|
||||
|
||||
return InvalidValueAction(value, fieldType, fieldName);
|
||||
}
|
||||
else if (fieldType == typeof(ConditionExpression))
|
||||
else if (fieldType == typeof(VariableExpression))
|
||||
{
|
||||
if (value != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
return new ConditionExpression(value);
|
||||
return new VariableExpression(value);
|
||||
}
|
||||
catch (InvalidDataException e)
|
||||
{
|
||||
|
||||
@@ -260,7 +260,7 @@
|
||||
<Compile Include="Primitives\float3.cs" />
|
||||
<Compile Include="InstalledMods.cs" />
|
||||
<Compile Include="CryptoUtil.cs" />
|
||||
<Compile Include="Support\ConditionExpression.cs" />
|
||||
<Compile Include="Support\VariableExpression.cs" />
|
||||
<Compile Include="ExternalMods.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
|
||||
@@ -18,7 +18,7 @@ using Expressions = System.Linq.Expressions;
|
||||
|
||||
namespace OpenRA.Support
|
||||
{
|
||||
public class ConditionExpression
|
||||
public class VariableExpression
|
||||
{
|
||||
public readonly string Expression;
|
||||
readonly HashSet<string> variables = new HashSet<string>();
|
||||
@@ -525,7 +525,7 @@ namespace OpenRA.Support
|
||||
}
|
||||
}
|
||||
|
||||
public ConditionExpression(string expression)
|
||||
public VariableExpression(string expression)
|
||||
{
|
||||
Expression = expression;
|
||||
var tokens = new List<Token>();
|
||||
Reference in New Issue
Block a user