Ejemplo n.º 1
0
        private CardBox?GetPreviousLevelBox(CardBoxLevel level)
        {
            var previousLevelBoxIndex = _cardBoxes.FindLastIndex(b => b.Level < level);

            return(previousLevelBoxIndex != -1 ? _cardBoxes[previousLevelBoxIndex] : null);
        }
Ejemplo n.º 2
0
        private CardBox?GetNextLevelBox(CardBoxLevel level)
        {
            var nextLevelBoxIndex = _cardBoxes.FindIndex(b => b.Level > level);

            return(nextLevelBoxIndex != -1 ? _cardBoxes[nextLevelBoxIndex] : null);
        }