2022-02-19 15:03:06 +03:00
|
|
|
namespace Syntriax.Modules.Movement.VariableMovement.SimpleImplementation
|
|
|
|
{
|
|
|
|
public class SimpleVariableMovement : IVariableMovement
|
|
|
|
{
|
2022-02-19 16:49:34 +03:00
|
|
|
protected IVariableMovementAsset _variableMovementAsset = null;
|
|
|
|
|
|
|
|
public IVariableMovementAsset VariableMovementAsset
|
|
|
|
{
|
|
|
|
get => _variableMovementAsset;
|
|
|
|
set
|
|
|
|
{
|
|
|
|
_variableMovementAsset = value;
|
|
|
|
StateEnabled = false;
|
|
|
|
}
|
|
|
|
}
|
2022-02-19 15:03:06 +03:00
|
|
|
public bool StateEnabled { get; set; } = false;
|
|
|
|
|
2022-02-19 16:49:34 +03:00
|
|
|
public SimpleVariableMovement() { }
|
|
|
|
|
2022-02-19 15:03:06 +03:00
|
|
|
public SimpleVariableMovement(IVariableMovementAsset variableMovementAsset)
|
|
|
|
=> VariableMovementAsset = variableMovementAsset;
|
|
|
|
}
|
|
|
|
}
|