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; }
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(); }
internal GameMember(PlayerParticipant player, int team, Lobby lobby) : base(lobby) { this.player = player; Team = team; }
internal CustomLobbyMember(PlayerParticipant player, int team, CustomLobby lobby) : base(player, team, lobby) { }