private void AddCard(Card card) { if (card.IsExtraCard()) ExtraCards.Add(card); else Cards.Add(card); }
private static void AddToCards(IDictionary<int, int> cards, Card card) { int id = card.Id; if (card.Data.Alias != 0) id = card.Data.Alias; if (cards.ContainsKey(id)) cards[id]++; else cards.Add(id, 1); }
private static UInt32 MyCardReader(UInt32 code, Card.CardData* pData) { Card card = CardsManager.GetCard((int) code); if (card != null) *pData = card.Data; return code; }