예제 #1
0
 public static string RenderBotLeafTaskTypeToString(IBotTask leafTask)
 {
     return(new[]
     {
         leafTask.ContainsEffect() ? "Effect" : null,
         leafTask is DiagnosticTask ? "Diagnostic: \"" + (leafTask as DiagnosticTask)?.MessageText + "\"" : null
     }.WhereNotDefault().FirstOrDefault());
 }
예제 #2
0
 static public bool ShouldBeIncludedInStepOutput(this IBotTask task) =>
 (task?.ContainsEffect() ?? false) || task is DiagnosticTask;