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