Example #1
0
    /// <summary>
    /// 自动匹配
    /// </summary>
    /// <param name="mainId"></param>
    /// <param name="indexId"></param>
    public void ReqAutoMatch(uint activityId)
    {
        stAutoMatchTeamRelationUserCmd_CS cmd = new stAutoMatchTeamRelationUserCmd_CS();

        cmd.active_id = activityId;
        NetService.Instance.Send(cmd);
    }
Example #2
0
    /// <summary>
    /// 自动匹配返回
    /// </summary>
    /// <param name="cmd"></param>
    public void OnAutoMatch(stAutoMatchTeamRelationUserCmd_CS cmd)
    {
        if (IsJoinTeam)
        {
            m_bIsTeamMatch = true;
        }
        else   //便捷组队
        {
            m_bIsConvenientTeamMatch    = true;
            m_conveientActivityTargetId = cmd.active_id;
        }

        stTeamActivityTarget target = new stTeamActivityTarget {
            activityTargetId = cmd.active_id
        };

        if (DataManager.Manager <UIPanelManager>().IsShowPanel(PanelID.TeamPanel))
        {
            DataManager.Manager <UIPanelManager>().SendMsg(PanelID.TeamPanel, UIMsgID.eTeamMatch, target);
        }

        if (DataManager.Manager <UIPanelManager>().IsShowPanel(PanelID.ConvenientTeamPanel))
        {
            DataManager.Manager <UIPanelManager>().SendMsg(PanelID.ConvenientTeamPanel, UIMsgID.eTeamMatch, target);
        }
    }
Example #3
0
 public void OnAutoMatch(stAutoMatchTeamRelationUserCmd_CS cmd)
 {
     DataManager.Manager <TeamDataManager>().OnAutoMatch(cmd);
 }