mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-23 07:29:02 -08:00
Use common library in SuperStarTrek
This commit is contained in:
@@ -8,6 +8,12 @@ namespace Games.Common.IO;
|
||||
/// </summary>
|
||||
public interface IReadWrite
|
||||
{
|
||||
/// <summary>
|
||||
/// Reads a character from input.
|
||||
/// </summary>
|
||||
/// <returns>The character read.</returns>
|
||||
char ReadCharacter();
|
||||
|
||||
/// <summary>
|
||||
/// Reads a <see cref="float" /> value from input.
|
||||
/// </summary>
|
||||
@@ -99,6 +105,13 @@ public interface IReadWrite
|
||||
/// </summary>
|
||||
/// <param name="format">The format <see cref="string" /> to be written.</param>
|
||||
/// <param name="value">The values to be inserted into the format.</param>
|
||||
void Write(string format, params object[] values);
|
||||
|
||||
/// <summary>
|
||||
/// Writes a formatted string to output followed by a new-line.
|
||||
/// </summary>
|
||||
/// <param name="format">The format <see cref="string" /> to be written.</param>
|
||||
/// <param name="value">The values to be inserted into the format.</param>
|
||||
void WriteLine(string format, params object[] values);
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user