mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-22 15:16:33 -08:00
Encapsulate calculations and graph logic
This commit is contained in:
11
13_Bounce/csharp/IReadWriteExtensions.cs
Normal file
11
13_Bounce/csharp/IReadWriteExtensions.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace Bounce;
|
||||
|
||||
internal static class IReadWriteExtensions
|
||||
{
|
||||
internal static float ReadParameter(this IReadWrite io, string parameter)
|
||||
{
|
||||
var value = io.ReadNumber(parameter);
|
||||
io.WriteLine();
|
||||
return value;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user