public void showFinalJieSuanInfo(CMD_GF_Private_End_Info pNetInfo)
        {
            //以下都移到了上层调用函数CServerItem::OnSocketSubPrivateEnd中,因为CServerItem::OnGFGameClose后showFinalJieSuanInfo就不会被调用了

            //hnManager.m_cbGameEndReason = pNetInfo.cbEndReason;

            ////mChen add, for HideSeek
            //GlobalUserInfo pGlobalUserInfo = GlobalUserInfo.GetInstance();
            //tagGlobalUserData pGlobalUserData = pGlobalUserInfo.GetGlobalUserData();
            //pGlobalUserData.cbMapIndexRand = pNetInfo.cbMapIndex;
            //pGlobalUserData.wRandseed = pNetInfo.wRandseed;
            //pGlobalUserData.wRandseedForRandomGameObject = pNetInfo.wRandseedForRandomGameObject;
            //pGlobalUserData.wRandseedForInventory = pNetInfo.wRandseedForInventory;

            ////mChen add, for HideSeek
            //UserInfo.getInstance().reqAccountInfo();
            //Loom.QueueOnMainThread(() =>
            //{
            //    Loom.QueueOnMainThread(() =>
            //    {
            //        if (hnManager != null)
            //        {
            //            GameObjectsManager.GetInstance().ClearPlayers();
            //            var kernel = (GameScene)CServerItem.get().GetClientKernelSink();
            //            if (kernel != null)
            //            {
            //                kernel.clearInfo();
            //            }

            //            if (pNetInfo.cbEndReason == HNMJ_Defines.GER_NORMAL)
            //            {
            //                hnManager.PlayAgain();
            //            }
            //        }
            //    }, 3.0f);//delay to call PlayAgain,保证所有客户端都结束后才调用PlayAgain和ClearPlayers,防止误RemovePlayers
            //});

            return;
        }
 public override void OnSocketSubPrivateEnd(CMD_GF_Private_End_Info pNetInfo)
 {
     showFinalJieSuanInfo(pNetInfo);
 }
Esempio n. 3
0
 public virtual void OnSocketSubPrivateEnd(CMD_GF_Private_End_Info pNetInfo)
 {
 }