public string ToString(DestructableData.Mask <bool>?printMask = null) { var fg = new FileGeneration(); ToString(fg, printMask); return(fg.ToString()); }
public void ToString(FileGeneration fg, DestructableData.Mask <bool>?printMask = null) { fg.AppendLine($"{nameof(DestructableData.Mask<TItem>)} =>"); fg.AppendLine("["); using (new DepthWrapper(fg)) { if (printMask?.Health ?? true) { fg.AppendItem(Health, "Health"); } if (printMask?.DESTCount ?? true) { fg.AppendItem(DESTCount, "DESTCount"); } if (printMask?.VATSTargetable ?? true) { fg.AppendItem(VATSTargetable, "VATSTargetable"); } if (printMask?.Unknown ?? true) { fg.AppendItem(Unknown, "Unknown"); } } fg.AppendLine("]"); }
public Mask <R> Translate <R>(Func <TItem, R> eval) { var ret = new DestructableData.Mask <R>(); this.Translate_InternalFill(ret, eval); return(ret); }