示例#1
0
        public void Draw(SortedDictionary <Player, List <Card> > players)
        {
            var playerNumber = 0;

            foreach (var player in players)
            {
                playerNumber++;
                var cardNumber = 0;
                foreach (var card in player.Value)
                {
                    _cardTexturePng.Draw(_spriteBatch, card, cardNumber++, playerNumber);
                }
            }
        }
示例#2
0
 public void Draw(List <Card> cards)
 {
     cards.ForEach(c => _cardTexturePng.Draw(_spriteBatch, c, 1, 6));
 }