BattleCry.Sound.ConfigCardSoundPicker.GetBattleCryFor C# (CSharp) Méthode

GetBattleCryFor() public méthode

public GetBattleCryFor ( Hearthstone_Deck_Tracker.Hearthstone.Card card, CardSource cardSource ) : SoundPlaySetting
card Hearthstone_Deck_Tracker.Hearthstone.Card
cardSource CardSource
Résultat BattleCry.Util.Model.SoundPlaySetting
        public SoundPlaySetting GetBattleCryFor(Card card, CardSource cardSource)
        {
            var soundPlaySetting = _configManager.Config.SoundFiles.FirstOrDefault((sound) =>
            {
                return (sound.CardSource == CardSource.All || cardSource == sound.CardSource) && sound.CardId == card.Id;
            });

            return soundPlaySetting;
        }
    }