private static void LoadCard(IDataRecord reader) { Card card = new Card(reader); _cards.Add(card.Id, card); }
private static void AddToCards(IDictionary<int, int> cards, Card card) { int id = card.Id; if (card.Alias != 0) id = card.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; }