mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2026-01-02 08:10:45 -08:00
16 lines
448 B
C#
16 lines
448 B
C#
using System;
|
|
|
|
namespace SuperStarTrek
|
|
{
|
|
internal class Output
|
|
{
|
|
public void Write(string text) => Console.Write(text);
|
|
public void Write(string format, params object[] args) => Console.Write(format, args);
|
|
public void WriteLine(string text = "") => Console.WriteLine(text);
|
|
|
|
public void NextLine() => Console.WriteLine();
|
|
|
|
public void Prompt(string text = "") => Console.Write($"{text}? ");
|
|
}
|
|
}
|