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;
 }
示例#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();
    }
示例#3
0
 internal GameMember(BotParticipant bot, int team, Lobby lobby) : base(lobby) {
   this.bot = bot;
   Team = team;
 }
示例#4
0
 internal CustomLobbyMember(BotParticipant bot, int team, CustomLobby lobby) : base(bot, team, lobby) { }