ArmedCards.Entities.GamePlayer.CheckHand C# (CSharp) Метод

CheckHand() публичный Метод

Check to see if the player has cardIDs in their hand
public CheckHand ( List cardIDs ) : List
cardIDs List List of card IDs to check if present in player's hand
Результат List
        public List<Int32> CheckHand(List<Int32> cardIDs)
        {
            List<Int32> missingIds = new List<int>();

            Int32 indexOf = -1;

            foreach (Int32 cardID in cardIDs)
            {
                indexOf = Hand.FindIndex(x => x.CardID == cardID);

                if (indexOf < 0)
                {
                    missingIds.Add(cardID);
                }
            }

            return missingIds;
        }