示例#1
0
        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);
        }
 public override string ToDebugString()
 {
     return($"{ToolBox.GetDebugSymbol(HasBeenDetermined())} {nameof(CheckItemAction)} -> (TargetTag: {TargetTag.ColorizeObject()}, " +
            $"ItemIdentifiers: {ItemIdentifiers.ColorizeObject()}" +
            $"Succeeded: {succeeded.ColorizeObject()})");
 }
 public CheckItemAction(ScriptedEvent parentEvent, XElement element) : base(parentEvent, element)
 {
     itemIdentifierSplit = ItemIdentifiers.Split(',');
     itemTags            = ItemTags.Split(",");
 }