コード例 #1
0
 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);
     }
 }
コード例 #2
0
        /// <inheritdoc/>
        protected override ICollection <SoundEvent> DeserializeFolders(string fileCotent)
        {
            SoundCollectionConverter converter = new SoundCollectionConverter(Modname, Modid);

            return(JsonConvert.DeserializeObject <Collection <SoundEvent> >(fileCotent, converter));
        }