muddesigner/MudEngine/WinPC_Server/ConsoleInput.cs
Scionwest_cp fc27d9fc22 * Provided better commenting of the Server application.
* Performed some Refactoring.  ConsoleInput file created to store the ConsoleInput class instead of it being held within the Program.cs file.
2012-02-28 20:44:59 -08:00

33 lines
830 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace WinPC_Server
{
class ConsoleInput
{
/// <summary>
/// Current queued console message entered by the user
/// </summary>
public String Message { get; set; }
public ConsoleInput()
{
Message = String.Empty;
}
/// <summary>
/// Retrieves input from the user and queues it in ConsoleInput.Message
/// </summary>
public void GetInput()
{
while (true)
{
Console.WriteLine("Enter a Server Command: ");
//Accept input from the user and store it for use.
Message = Console.ReadLine();
}
}
}
}