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