Exemple #1
0
    /// <summary>
    /// 收到申请列表
    /// </summary>
    public void OnApplyList(GameCmd.stRequestTeamListRelationUserCmd_S cmd)
    {
        int needCount = TeamMemberMax - m_listTeamMember.Count;  //我的队伍里面还差几个人

        this.m_listApplyMember.Clear();
        for (int i = 0; i < cmd.data.Count; i++)
        {
            TeamMemberInfo teamMemberInfo = new TeamMemberInfo(cmd.data[i].userid, cmd.data[i].username, cmd.data[i].byLevel, cmd.data[i].byProfession, cmd.data[i].byOnline, cmd.data[i].wdFace, cmd.data[i].suit_data);
            if (m_leaderAutoAgreeTeamApply && i < needCount)  //自动同意入队
            {
                ReqLeaderAnswerJoin(teamMemberInfo.id, true);
            }
            else
            {
                this.m_listApplyMember.Add(teamMemberInfo);
            }
        }

        if (DataManager.Manager <UIPanelManager>().IsShowPanel(PanelID.TeamPanel))
        {
            DataManager.Manager <UIPanelManager>().SendMsg(PanelID.TeamPanel, UIMsgID.eUpdateApplyList, null);
        }
    }
Exemple #2
0
 public void Execute(GameCmd.stRequestTeamListRelationUserCmd_S cmd)
 {
     DataManager.Manager <TeamDataManager>().OnApplyList(cmd);
 }