2using System.Collections.Generic;
25 private readonly List<BadNetworkConsoleClientCommand>
m_Commands =
new List<BadNetworkConsoleClientCommand>();
45 string[] parts = command.Split(
new[] {
' ' }, StringSplitOptions.RemoveEmptyEntries);
47 if (parts.Length == 0)
52 string name = parts[0];
57 cmd.
Invoke(parts.Skip(1).ToArray());
70 public void AddCommand(Func<BadNetworkConsoleClient, BadNetworkConsoleClientCommand> command)
Wrapper class for the console abstraction.
static void WriteLine(string str)
Writes a string to the console and appends a newline.
The Default Command Parser for the Remote Console Client.
IEnumerable< BadNetworkConsoleClientCommand > Commands
The Commands.
readonly BadNetworkConsoleClient m_Client
The Client.
void AddCommand(Func< BadNetworkConsoleClient, BadNetworkConsoleClientCommand > command)
Adds a Command to the Command List.
BadDefaultNetworkClientCommandParser(BadNetworkConsoleClient client)
Creates a new Command Parser.
void ExecuteCommand(string command)
Executes a command on the client.
readonly List< BadNetworkConsoleClientCommand > m_Commands
The Command List.
Implements the Client for the Remote Console.
Abstract Base Class for Remote Console Commands.
string Name
The Name of the Command.
void Invoke(string[] args)
Executes the Command with the given arguments.
Used to parse commands on the client.
Contains Console Commands for the Remote Console Client.
Contains the Console Client Implementation for the Remote Console Abstraction over TCP.