Reduce precision to float

This commit is contained in:
Andrew Cooper
2021-03-07 18:27:55 +11:00
parent 345545a27d
commit d0ed8d2f35
10 changed files with 35 additions and 35 deletions

View File

@@ -18,7 +18,7 @@ namespace SuperStarTrek.Systems
_input = input;
}
public double ShieldEnergy { get; private set; }
public float ShieldEnergy { get; private set; }
protected override bool CanExecuteCommand() => IsOperational("{name} inoperable");
@@ -39,7 +39,7 @@ namespace SuperStarTrek.Systems
return CommandResult.Ok;
}
private bool Validate(double requested)
private bool Validate(float requested)
{
if (requested > _enterprise.TotalEnergy)
{