Skip to content

Commit

Permalink
Fixed some merge issues x)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wibble199 committed May 17, 2020
1 parent d7fa8fa commit f5fcc84
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public BooleanGSIBoolean() { }
/// <summary>Fetches the given boolean value from the game state and returns it.</summary>
protected override bool Execute(IGameState gameState) => gameState.GetBool(VariablePath);

public Evaluatable<bool> Clone() => new BooleanGSIBoolean { VariablePath = VariablePath };
public override Evaluatable<bool> Clone() => new BooleanGSIBoolean { VariablePath = VariablePath };
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ public NumberGSINumeric() { }
public string VariablePath { get; set; }

// Control assigned to this evaluatable
public Visual GetControl() => new GameStateParameterPicker { PropertyType = GSIPropertyType.Number }
public override Visual GetControl() => new GameStateParameterPicker { PropertyType = GSIPropertyType.Number }
.WithBinding(GameStateParameterPicker.ApplicationProperty, new AttachedApplicationBinding())
.WithBinding(GameStateParameterPicker.SelectedPathProperty, new Binding("VariablePath") { Source = this });

/// <summary>Parses the numbers, compares the result, and returns the result.</summary>
protected override double Execute(IGameState gameState) => gameState.GetNumber(VariablePath);

public IEvaluatable<double> Clone() => new NumberGSINumeric { VariablePath = VariablePath };
public override Evaluatable<double> Clone() => new NumberGSINumeric { VariablePath = VariablePath };
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class StringGSIString : Evaluatable<string> {
public string VariablePath { get; set; } = "";

/// <summary>Control assigned to this logic node.</summary>
public Visual GetControl() => new GameStateParameterPicker { PropertyType = GSIPropertyType.String }
public override Visual GetControl() => new GameStateParameterPicker { PropertyType = GSIPropertyType.String }
.WithBinding(GameStateParameterPicker.ApplicationProperty, new AttachedApplicationBinding())
.WithBinding(GameStateParameterPicker.SelectedPathProperty, new Binding("VariablePath") { Source = this });

Expand Down

0 comments on commit f5fcc84

Please sign in to comment.