Пример #1
0
 /// <summary>
 /// Normal constructor.
 /// </summary>
 /// <param name="fileName"></param>
 public SoundCache(string fileName, SoundBanksInfoXML banksinfo)
 {
     FileName = fileName;
     info     = banksinfo;
     using (var br = new BinaryReader(new FileStream(fileName, FileMode.Open)))
         Read(br);
 }
Пример #2
0
 public SoundManager()
 {
     Items              = new Dictionary <string, List <IWitcherFile> >();
     Archives           = new Dictionary <string, SoundCache>();
     FileList           = new List <IWitcherFile>();
     Extensions         = new List <string>();
     AutocompleteSource = new AutoCompleteStringCollection();
     soundBanksInfo     = new SoundBanksInfoXML(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "SoundCache", "soundbanksinfo.xml"));
 }
Пример #3
0
 public SoundManager()
 {
     Items              = new Dictionary <string, List <IWitcherFile> >();
     Archives           = new Dictionary <string, SoundCache>();
     FileList           = new List <IWitcherFile>();
     Extensions         = new List <string>();
     AutocompleteSource = new AutoCompleteStringCollection();
     soundBanksInfo     = new SoundBanksInfoXML("SoundCache\\soundbanksinfo.xml");
 }