public string ToString(NpcSoundTypes.Mask <bool>?printMask = null) { var fg = new FileGeneration(); ToString(fg, printMask); return(fg.ToString()); }
public void ToString(FileGeneration fg, NpcSoundTypes.Mask <bool>?printMask = null) { fg.AppendLine($"{nameof(NpcSoundTypes.Mask<TItem>)} =>"); fg.AppendLine("["); using (new DepthWrapper(fg)) { if ((printMask?.Types?.Overall ?? true) && Types.TryGet(out var TypesItem)) { fg.AppendLine("Types =>"); fg.AppendLine("["); using (new DepthWrapper(fg)) { fg.AppendItem(TypesItem.Overall); if (TypesItem.Specific != null) { foreach (var subItem in TypesItem.Specific) { fg.AppendLine("["); using (new DepthWrapper(fg)) { subItem?.ToString(fg); } fg.AppendLine("]"); } } } fg.AppendLine("]"); } } fg.AppendLine("]"); }
public new Mask <R> Translate <R>(Func <TItem, R> eval) { var ret = new NpcSoundTypes.Mask <R>(); this.Translate_InternalFill(ret, eval); return(ret); }