Esempio n. 1
0
        public async Task ConvertAsync(string sourcePath, EmporiumBuilder builder)
        {
            var isSourceYaml = Path.GetExtension(sourcePath) == ".yml";

            using var source = File.OpenRead(sourcePath);
            var talents = await Deserialize(source, isSourceYaml);

            foreach (var talent in talents)
            {
                if (string.IsNullOrEmpty(talent.Depreciated))
                {
                    builder.Add(talent);
                }
            }
        }
Esempio n. 2
0
 public DestinationWriter(EmporiumBuilder emporiumBuilder)
 {
     _emporiumBuilder = emporiumBuilder ?? throw new ArgumentNullException(nameof(emporiumBuilder));
 }
 public ConversionProcessor(EmporiumBuilder emporiumBuilder, SourceConverter sourceConverter, DestinationWriter destinationWriter)
 {
     _emporiumBuilder   = emporiumBuilder ?? throw new ArgumentNullException(nameof(emporiumBuilder));
     _sourceConverter   = sourceConverter ?? throw new ArgumentNullException(nameof(sourceConverter));
     _destinationWriter = destinationWriter ?? throw new ArgumentNullException(nameof(destinationWriter));
 }