public uint Execute(PacketDistributed ipacket)
        {
            GC_COMPLETEMISSION_RET packet = (GC_COMPLETEMISSION_RET )ipacket;

            if (null == packet)
            {
                return((uint)PACKET_EXE.PACKET_EXE_ERROR);
            }
            //enter your logic
            int nMissionID = packet.MissionID;
            int nRet       = packet.Ret;

            if (1 == nRet)
            {
                GameManager.gameManager.MissionManager.CompleteMissionOver(nMissionID);
                if (MissionLogLogic.Instance() != null)
                {
                    MissionLogLogic.Instance().DailyMissionRedPoint();
                }
                if (NewFunctionLogic.Instance() != null)
                {
                    NewFunctionLogic.Instance().DailyMissionRedPoint();
                }
            }
            return((uint)PACKET_EXE.PACKET_EXE_CONTINUE);
        }
Example #2
0
 void OnLoadMissionAndMissionDayRoot(bool bSuccess, object param)
 {
     if (MissionLogLogic.Instance() != null)
     {
         MissionLogLogic.Instance().tabController.ChangeTab("Btn2-Daily");
     }
 }
 void OnLoadMissionAndMissionDayRoot(bool bSuccess, object param)
 {
     if (MissionLogLogic.Instance() != null)
     {
         MissionLogLogic.Instance().SetOpenTabName("Btn0-CanAccept");
     }
 }
        public void HandlePacket(GC_ASK_ACTIVENESSAWARD_RET packet)
        {
            int  nTurnID = packet.Turnid;
            bool bFlag   = (packet.Flag == 0? false:true);

            SetActivenessFlag(nTurnID, bFlag);

            // 通知UI更新
//             if (ActivityController.Instance())
//             {
//                 ActivityController.Instance().UpdateAwardItemState(nTurnID);
//                 ActivityController.Instance().UpdateTabTips();
//             }
            if (FunctionButtonLogic.Instance())
            {
                FunctionButtonLogic.Instance().UpdateActionButtonTip();
            }
            if (MissionLogLogic.Instance())
            {
                MissionLogLogic.Instance().dailyView.UpdateChests(m_nActiveness);
                MissionLogLogic.Instance().DailyMissionRedPoint();
            }
        }