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