public void SetModInfo(string modname, string modid) { this.modname = modname ?? throw new ArgumentNullException(nameof(modname)); this.modid = modid ?? throw new ArgumentNullException(nameof(modid)); if (converter == null) { converter = new SoundCollectionConverter(modname, modid); } else { converter.SetModInfo(modname, modid); } }
/// <inheritdoc/> protected override ICollection <SoundEvent> DeserializeFolders(string fileCotent) { SoundCollectionConverter converter = new SoundCollectionConverter(Modname, Modid); return(JsonConvert.DeserializeObject <Collection <SoundEvent> >(fileCotent, converter)); }