private void _replaceIngredientCards(PlayerHand hand) { ICommand command = ReplaceIngredientCards.Create( hand, matchState.ingredientDeck); _commandFactory.Execute(command); }
public static ReplaceIngredientCards Create( PlayerHand hand, CardDeck ingredientDeck) { ReplaceIngredientCards command = new ReplaceIngredientCards(); command._hand = hand; command._ingredientDeck = ingredientDeck; return(command); }