Exemplo n.º 1
0
        internal void GetCardContext(int cardType)
        {
            CardContext context = cards[cardType];

            if (context == null)
            {
                CurrentIndex = 0;
                CurrentCount = 0;
            }
            else
            {
                CurrentIndex = context.Index;
                CurrentCount = context.Count;
            }
        }
Exemplo n.º 2
0
        internal void SetCardContext(int cardType)
        {
            CardContext context = new CardContext
            {
                CardType = cardType,
                Index    = CurrentIndex,
                Count    = CurrentCount
            };

            cards[cardType] = context;

            if ((cardType == 0) || (cardType == 6))
            {
                cards[cardType + 1] = context;
            }
        }