Example #1
0
    /// <summary>
    /// 已经是成员的,收到新加入的人的ID
    /// </summary>
    /// <param name="cmd"></param>
    public void OnAddTeamMember(GameCmd.stAddTeamMemberRelationUserCmd_S cmd)
    {
        TeamMemberInfo memberInfo = new TeamMemberInfo(cmd.dwUserID, cmd.userName, cmd.byLevel, cmd.byProfession, cmd.byOnline, cmd.wdFace, cmd.suit_data);

        DataManager.Manager <TeamDataManager>().AddTeamMember(memberInfo);


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

        if (DataManager.Manager <UIPanelManager>().IsShowPanel(PanelID.MissionAndTeamPanel))
        {
            DataManager.Manager <UIPanelManager>().SendMsg(PanelID.MissionAndTeamPanel, UIMsgID.eUpdateMyTeamList, null);
        }

        if (ClientGlobal.Instance().IsMainPlayer(cmd.dwUserID))
        {
            TipsManager.Instance.ShowLocalFormatTips(LocalTextType.Team_Member_Xjiaruliaodongwu, "你");//{0}加入了队伍
        }
        else
        {
            TipsManager.Instance.ShowLocalFormatTips(LocalTextType.Team_Member_Xjiaruliaodongwu, cmd.userName);//{0}加入了队伍
        }
    }
Example #2
0
 public void Execute(GameCmd.stAddTeamMemberRelationUserCmd_S cmd)
 {
     DataManager.Manager <TeamDataManager>().OnAddTeamMember(cmd);
 }