public override bool Register(CCommand newCommand) { if (commands.ContainsKey(newCommand.token)) { return(false); } commands[newCommand.token] = newCommand; return(true); }
public static void Register() { CCommand cmd = new CCommand("clear", clearCmd); CCommand echo = new CCommand("echo", echoCmd); }
private static string consoleHistory; // HACK: not sure who should have this public static void Register(CCommand newCommand) { commands.Add(newCommand); }
public abstract bool Register(CCommand newCommand);