Fix action resolution

This commit is contained in:
Andrew Cooper
2022-04-12 17:47:24 +10:00
parent c45fb59747
commit f4fa4f230b
2 changed files with 15 additions and 17 deletions

View File

@@ -13,11 +13,11 @@ internal static class IReadWriteExtensions
}
}
private static bool TryReadInteger(this IReadWrite io, string prompt, out int value)
private static bool TryReadInteger(this IReadWrite io, string prompt, out int intValue)
{
var floatValue = io.ReadNumber(prompt);
value = (int)floatValue;
return value == floatValue;
intValue = (int)floatValue;
return intValue == floatValue;
}
public static Shot? ReadShot(this IReadWrite io, string prompt)