protected override Response AsyncTask(Command command) { TBWriter.Info1("----------------------------------------------"); TBWriter.Spaced(" >>> Received " + command.CommandName + " , received = [" + command.Parameters + "]"); bool succes; WorldObject[] objectsFounded; if (!taskPlanner.Cmd_FindObject(out objectsFounded)) { TBWriter.Spaced(" Terminated " + command.CommandName + " , sending = [" + command.Parameters + "] <<<"); TBWriter.Info1("----------------------------------------------"); return(Response.CreateFromCommand(command, false)); } if (objectsFounded == null) { TBWriter.Spaced(" Terminated " + command.CommandName + " , sending = [" + command.Parameters + "] <<<"); TBWriter.Info1("----------------------------------------------"); return(Response.CreateFromCommand(command, false)); } string objectsList = ""; foreach (WorldObject obj in objectsFounded) { objectsList += obj.Name + " "; } command.Parameters = objectsList; TBWriter.Spaced(" Terminated " + command.CommandName + " , sending = [" + command.Parameters + "] <<<"); TBWriter.Info1("----------------------------------------------"); return(Response.CreateFromCommand(command, true)); }