Ejemplo n.º 1
0
 public ChampSelectPlayer(BotParticipant bot) : this() {
   var champ = DataDragon.ChampData.Value.data[bot.SummonerInternalName.Split('_')[1]];
   ChampImage.Source = DataDragon.GetChampIconImage(champ).Load();
   NameLabel.Visibility = Visibility.Visible;
   NameLabel.Content = champ.name;
   Unknown.Visibility = Obscure.Visibility = Visibility.Collapsed;
 }
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(BotParticipant bot, int team, Lobby lobby) : base(lobby) {
   this.bot = bot;
   Team = team;
 }
Ejemplo n.º 4
0
 internal CustomLobbyMember(BotParticipant bot, int team, CustomLobby lobby) : base(bot, team, lobby) { }