private async Task SetCardToCharacters(ICardHolder cardHandler, int cardHandlerIndex, int cardsCountToSet) { var cards = new List<ICard>(); for (int i = 0; i < cardsCountToSet; i++) { cards.Add(this.cards[cardHandlerIndex * cardsCountToSet + i]); } await cardHandler.SetAllCards(cards); }
private async Task SetCardToPokerManager(ICardHolder cardHandler, int cardsCountToSet, int allPlayersCardsCount) { var cards = new List <ICard>(); for (int i = 0; i < cardsCountToSet; i++) { cards.Add(this.cards[allPlayersCardsCount + i]); } await cardHandler.SetAllCards(cards); }
private async Task SetCardToCharacters(ICardHolder cardHandler, int cardHandlerIndex, int cardsCountToSet) { var cards = new List <ICard>(); for (int i = 0; i < cardsCountToSet; i++) { cards.Add(this.cards[cardHandlerIndex * cardsCountToSet + i]); } await cardHandler.SetAllCards(cards); }
private async Task SetCardToPokerManager(ICardHolder cardHandler, int cardsCountToSet, int allPlayersCardsCount) { var cards = new List<ICard>(); for (int i = 0; i < cardsCountToSet; i++) { cards.Add(this.cards[allPlayersCardsCount + i]); } await cardHandler.SetAllCards(cards); }