Exemplo n.º 1
0
 private void RefreshRoles(GamePlayer player, StackPanel heroPanel, StackPanel warriorPanel)
 {
     warriorPanel.Children.Clear();
     heroPanel.Children.Clear();
     foreach (var role in player.GameRoles)
     {
         CardView view = CardView.CreateFromGameRole(role);
         if (role.IsHero)
         {
             heroPanel.Children.Add(view);
         }
         else
         {
             warriorPanel.Children.Add(view);
         }
         role.CardView = view;
     }
 }