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 OnCardReader(UInt32 code, Card.CardData* pData) { Card card = CardsManager.GetCard((int) code); if (card != null) { *pData = card.Data; } return code; }
private static void LoadCard(IDataRecord reader) { Card card = new Card(reader); _cards.Add(card.Id, card); }