private void PopulateActivityRelated(Game game, Player player) { var activity = game.GetPendingActivity(player); if(activity != null) PendingActivity = new ActivityModel(activity); if (activity is IRevealedCardsActivity) { this.Revealed = ((IRevealedCardsActivity)activity).RevealedCards .Select(c => new CardViewModel(c)).ToArray(); } }
private void PopulateActivityRelated(Game game, Player player) { var activity = game.GetPendingActivity(player); if (activity != null) { PendingActivity = new ActivityModel(activity); } if (activity is IRevealedCardsActivity) { this.Revealed = ((IRevealedCardsActivity)activity).RevealedCards .Select(c => new CardViewModel(c)).ToArray(); } }