public void RemoveEmptyRow(NodeAddedEvent e, UserRowNode userRow, [JoinByScoreTable] ScoreTableNode scoreTable)
 {
     if (scoreTable.scoreTableEmptyRowIndicators.emptyRows.Count > 0)
     {
         ScoreTableRowComponent row = scoreTable.scoreTableEmptyRowIndicators.emptyRows.Pop();
         scoreTable.scoreTable.RemoveRow(row);
     }
 }
 public void AddEmptyRow(NodeRemoveEvent e, UserRowNode userRow, [JoinByScoreTable] ScoreTableNode scoreTable)
 {
     if (scoreTable.scoreTable.gameObject.activeInHierarchy)
     {
         ScoreTableRowComponent t = scoreTable.scoreTable.AddRow();
         scoreTable.scoreTableEmptyRowIndicators.emptyRows.Push(t);
         this.InitRow(t, scoreTable.scoreTableEmptyRowIndicators);
     }
 }
 public void InitTeam(NodeAddedEvent e, [Combine] ScoreTableNode scoreTable, [Context, JoinByBattle] TeamBattleNode battle)
 {
     for (int i = 0; i < battle.userLimit.TeamLimit; i++)
     {
         ScoreTableRowComponent t = scoreTable.scoreTable.AddRow();
         scoreTable.scoreTableEmptyRowIndicators.emptyRows.Push(t);
         this.InitRow(t, scoreTable.scoreTableEmptyRowIndicators);
     }
     base.ScheduleEvent <ScoreTableSetEmptyRowsPositionEvent>(scoreTable);
 }
 public void RemoveRow(NodeRemoveEvent e, UserNode user, [JoinByUser, Combine] UserRowNode row, [JoinByScoreTable, Mandatory] ScoreTableNode scoreTable)
 {
     scoreTable.scoreTable.RemoveRow(row.scoreTableRow);
 }
 public void ClearScoreTable(NodeRemoveEvent e, ScoreTableNode scoreTable)
 {
     scoreTable.scoreTable.Clear();
 }
 public void Destroy(NodeRemoveEvent e, ScoreTableNode scoreTable)
 {
     scoreTable.scoreTableEmptyRowIndicators.emptyRows.Clear();
 }
 public void RemovePrerequisite(NodeRemoveEvent e, [Combine] ScoreTableRowNode scoreTableRow, [JoinByScoreTable] ScoreTableNode scoreTable, [JoinByScreen] SingleNode <DMBattleScpectatorScreenComponent> dmSpectatorScreen, [JoinByScreen] ScoreTableNode scoreTable2, [JoinByScoreTable] ICollection <ScoreTableRowNode> rows)
 {
     if (rows.Count <= 1)
     {
         scoreTable.visibilityPrerequisites.AddHidePrerequisite(this.HIDE_WHEN_EMPTY, false);
     }
 }
 public void HideEmptyScoreTable(NodeAddedEvent e, ScoreTableNode scoreTable, [Context, JoinByScreen] SingleNode <DMBattleScpectatorScreenComponent> dmSpectatorScreen)
 {
     scoreTable.visibilityPrerequisites.AddHidePrerequisite(this.HIDE_WHEN_EMPTY, false);
 }
 public void GroupScoreTable(NodeAddedEvent e, [Combine] ScoreTableNode scoreTable, [Context, JoinByScreen] ScreenNode screen)
 {
     scoreTable.Entity.AddComponent(new BattleGroupComponent(screen.battleGroup.Key));
 }
 public void AddPrerequisite(NodeAddedEvent e, [Combine] ScoreTableRowNode scoreTableRow, [JoinByScoreTable] ScoreTableNode scoreTable, [Context, JoinByScreen] SingleNode <DMBattleScpectatorScreenComponent> dmSpectatorScreen)
 {
     scoreTable.visibilityPrerequisites.RemoveHidePrerequisite(this.HIDE_WHEN_EMPTY, false);
 }
        public void SetUserLabel(NodeAddedEvent e, UserNode user, [Context, JoinByUser] UserLabelIndicatorNode userLabelIndicator, [JoinByScoreTable] ScoreTableNode scoreTable)
        {
            GameObject       userLabel = userLabelIndicator.scoreTableUserLabelIndicator.userLabel;
            bool             premium   = user.Entity.HasComponent <PremiumAccountBoostComponent>();
            UserLabelBuilder builder   = new UserLabelBuilder(user.Entity.Id, userLabel, user.userAvatar.Id, premium);
            LeagueNode       node      = base.Select <LeagueNode>(user.Entity, typeof(LeagueGroupComponent)).FirstOrDefault <LeagueNode>();

            if (node != null)
            {
                builder.SetLeague(node.leagueConfig.LeagueIndex);
            }
            builder.SkipLoadUserFromServer();
            if (scoreTable.scoreTableUserAvatar.EnableShowUserProfileOnAvatarClick)
            {
                builder.SubscribeAvatarClick();
            }
            builder.Build();
        }