Esempio n. 1
0
    CommandCallbackType ReceiveTeamDisbandHandle(byte[] dataBuffer, int socketId)
    {
        SMsgTeamDisband_SC sTeamDisband = SMsgTeamDisband_SC.ParsePackage(dataBuffer);

        if (GameManager.Instance.CurrentState == GameManager.GameState.GAME_STATE_TOWN)
        {
            MessageBox.Instance.ShowTips(4, LanguageTextManager.GetString("IDS_I13_44"), 1f);
        }
        RaiseEvent(EventTypeEnum.TeamDisband.ToString(), sTeamDisband);
        TeamManager.Instance.DoWaitExitTeamAction();
        return(CommandCallbackType.Continue);
    }
Esempio n. 2
0
        void TeamDisbandHandle(INotifyArgs e)
        {
            SMsgTeamDisband_SC teamDisbandMsg = (SMsgTeamDisband_SC)e;
            var teamData = TeamManager.Instance.MyTeamProp;

            if (teamData.TeamContext.dwId == teamDisbandMsg.dwTeamID)
            {
                ShowWorldTeamInfo();
                //MessageBox.Instance.Show(4, "", LanguageTextManager.GetString("IDS_H1_163"), LanguageTextManager.GetString("IDS_H2_55"));
                MessageBox.Instance.ShowTips(4, LanguageTextManager.GetString("IDS_H1_163"), 1f);
            }
            //清除队伍数据
            TeamManager.Instance.UnRegisteTeam();
            //刷新队伍
            TeamOrganizePanel.OnRefreshWorldTeamInfoClick(0);
        }