コード例 #1
0
ファイル: CheckItemAction.cs プロジェクト: lexuv2/Barotrauma
        public override string ToDebugString()
        {
            string subActionStr = "";

            if (succeeded.HasValue)
            {
                subActionStr = $"\n            Sub action: {(succeeded.Value ? Success : Failure)?.CurrentSubAction.ColorizeObject()}";
            }
            return($"{ToolBox.GetDebugSymbol(DetermineFinished())} {nameof(CheckItemAction)} -> (TargetTag: {TargetTag.ColorizeObject()}, " +
                   $"ItemIdentifiers: {ItemIdentifiers.ColorizeObject()}" +
                   $"Succeeded: {(succeeded.HasValue ? succeeded.Value.ToString() : "not determined").ColorizeObject()})" +
                   subActionStr);
        }
コード例 #2
0
 public override string ToDebugString()
 {
     return($"{ToolBox.GetDebugSymbol(HasBeenDetermined())} {nameof(CheckItemAction)} -> (TargetTag: {TargetTag.ColorizeObject()}, " +
            $"ItemIdentifiers: {ItemIdentifiers.ColorizeObject()}" +
            $"Succeeded: {succeeded.ColorizeObject()})");
 }