Beispiel #1
0
        public SoundService()
        {
            _sounds          = new List <Sound>();
            _databaseService = FreshIOC.Container.Resolve <IJsonDatabaseService>();

            _sounds             = _databaseService.GetSoundInfo();
            _openingSounds      = _sounds.Where(x => x.Path.Contains("Opening")).ToList();
            _beforeSpillSounds  = _sounds.Where(x => x.Path.Contains("BeforeSpill")).ToList();
            _afterSpillSounds   = _sounds.Where(x => x.Path.Contains("AfterSpill")).ToList();
            _changeBottleSounds = _sounds.Where(x => x.Path.Contains("ChangeBottle")).ToList();
        }