public ChampSelectPlayer(PlayerParticipant player, PlayerChampionSelectionDTO selection) : this() {
      if (player.SummonerId == Session.Current.Account.SummonerID)
        Glow.Opacity = 1;

      DisplaySelection(selection);

      NameLabel.Content = player.SummonerName;
      if (string.IsNullOrWhiteSpace(player.SummonerName))
        NameLabel.Visibility = Visibility.Collapsed;
      else
        NameLabel.Visibility = Visibility.Visible;
    }
Exemple #2
0
    internal virtual void Update(GameMember now) {
      Team = now.Team;

      if (now.IsPlayer && IsPlayer) player = now.player;
      else if (now.IsBot && IsBot) bot = now.bot;
      else throw new Exception("Cant update");

      OnChange();
    }
Exemple #3
0
 internal GameMember(PlayerParticipant player, int team, Lobby lobby) : base(lobby) {
   this.player = player;
   Team = team;
 }
Exemple #4
0
 internal CustomLobbyMember(PlayerParticipant player, int team, CustomLobby lobby) : base(player, team, lobby) { }