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