public override bool ExecuteCommand(DeveloperConsoleProvider host, ref string result, string[] arguments) { if (arguments.Length == 0) { result = CommandResults.WRONG_ARGS_MESS; return(false); } try { string tmp = ""; foreach (string s in arguments) { tmp += s + " "; } host.Print(tmp); } catch { result = CommandResults.WRONG_ARGS_MESS; return(false); } return(true); }
public override bool ExecuteCommand(DeveloperConsoleProvider host, ref string result, string[] arguments) { string list = host.GetAliasesList(); host.Print(list); return(true); }
public override bool ExecuteCommand(DeveloperConsoleProvider host, ref string result, string[] arguments) { int a, b; try { a = int.Parse(arguments[0]); b = int.Parse(arguments[1]); } catch { result = CommandResults.WRONG_ARGS_MESS; return(false); } host.Print((a + b).ToString()); return(true); }