Exemple #1
0
        public override bool OnPacket(NetPacketV1 pkt)
        {
            switch (pkt.getCmdId())
            {
            case 0x1b:
            case 0x1c:
                this.SetupView();
                break;

            case 0x67:
                this.SetupFragmentTab();
                if (this._tabManager.GetShowingTabKey() == "FragmentTab")
                {
                    GameObject showingTabContent = this._tabManager.GetShowingTabContent();
                    if (this._fadeManagerDict.ContainsKey(showingTabContent))
                    {
                        this._fadeManagerDict[showingTabContent].Init(this._scrollerDict[showingTabContent].GetItemDict(), null, new Func <RectTransform, RectTransform, bool>(this.IsStorageItemDataEqual));
                        this._fadeManagerDict[showingTabContent].Play();
                        this._itemBeforeDict[showingTabContent] = null;
                    }
                }
                break;

            case 40:
            case 0x88:
                return(this.SetupView());
            }
            return(false);
        }
        public override bool OnPacket(NetPacketV1 pkt)
        {
            switch (pkt.getCmdId())
            {
            case 0x19:
                return(this.OnGetAvatarDataRsp(pkt.getData <GetAvatarDataRsp>()));

            case 30:
                return(this.OnAvatarStarUpRsp(pkt.getData <AvatarStarUpRsp>()));

            case 0x24:
                return(this.OnAddAvatarExpByMaterialRsp(pkt.getData <AddAvatarExpByMaterialRsp>()));

            case 11:
                return(this.OnGetMainDataRsp(pkt.getData <GetMainDataRsp>()));

            case 0x37:
                return(this.OnSkillPointExchangeRsp(pkt.getData <SkillPointExchangeRsp>()));

            case 0x35:
                return(this.OnGetSkillPointExchangeInfoRsp(pkt.getData <GetSkillPointExchangeInfoRsp>()));

            case 0x33:
                return(this.OnAvatarSubSkillLevelUpRsp(pkt.getData <AvatarSubSkillLevelUpRsp>()));

            case 0x20:
                return(this.OnEquipmentPowerupRsp(pkt.getData <EquipmentPowerUpRsp>()));
            }
            return(false);
        }
Exemple #3
0
        public override bool OnPacket(NetPacketV1 pkt)
        {
            switch (pkt.getCmdId())
            {
            case 0x49:
                return(this.OnGetPlayerDetailDataRsp(pkt.getData <GetPlayerDetailDataRsp>()));

            case 0x41:
                return(this.OnGetFriendListRsp(pkt.getData <GetFriendListRsp>()));

            case 0x43:
                return(this.OnAddFriendRsp(pkt.getData <AddFriendRsp>()));

            case 0x47:
                return(this.OnGetAskAddFriendListRsp(pkt.getData <GetAskAddFriendListRsp>()));

            case 0x4d:
                return(this.OnGetRecommandFriendListRsp(pkt.getData <GetRecommendFriendListRsp>()));

            case 80:
                return(this.OnDelFriendNotify(pkt.getData <DelFriendNotify>()));

            case 0x65:
                return(this.OnGetAssistantFrozenListRsp(pkt.getData <GetAssistantFrozenListRsp>()));
            }
            return(false);
        }
Exemple #4
0
 public override bool OnPacket(NetPacketV1 pkt)
 {
     if (this._isSimpleWaitCmd && (pkt.getCmdId() == this._waitCmdID))
     {
         this.Finish();
     }
     return(false);
 }
 public override bool OnPacket(NetPacketV1 pkt)
 {
     if (pkt.getCmdId() == 0xd8)
     {
         this.OnBuyGachaTicketRsp(pkt.getData <BuyGachaTicketRsp>());
     }
     return(false);
 }
Exemple #6
0
 public override bool OnPacket(NetPacketV1 pkt)
 {
     if (pkt.getCmdId() == 0xd6)
     {
         this.OnExchangeRedeemCodeRsp(pkt.getData <ExchangeRedeemCodeRsp>());
     }
     return(false);
 }
 public override bool OnPacket(NetPacketV1 pkt)
 {
     if (pkt.getCmdId() == 0x49)
     {
         GetPlayerDetailDataRsp rsp = pkt.getData <GetPlayerDetailDataRsp>();
         this.OnSearchFriendDetailInfoRsp(rsp);
     }
     return(false);
 }
Exemple #8
0
        public override bool OnPacket(NetPacketV1 pkt)
        {
            switch (pkt.getCmdId())
            {
            case 0xc6:
                return(this.OnGetVipRewardDataRsp(pkt.getData <GetVipRewardDataRsp>()));

            case 200:
                return(this.OnGetVipRewardRsp(pkt.getData <GetVipRewardRsp>()));
            }
            return(false);
        }
        public override bool OnPacket(NetPacketV1 pkt)
        {
            switch (pkt.getCmdId())
            {
            case 40:
                return(this.OnDressEquipmentRsp(pkt.getData <DressEquipmentRsp>()));

            case 0x88:
                return(this.OnExchangeAvatarWeaponRsp(pkt.getData <ExchangeAvatarWeaponRsp>()));
            }
            return(false);
        }
Exemple #10
0
        public override bool OnPacket(NetPacketV1 pkt)
        {
            switch (pkt.getCmdId())
            {
            case 0x43:
                return(this.OnAddFriendRsp(pkt.getData <AddFriendRsp>()));

            case 0x45:
                return(this.OnDelFriendRsp(pkt.getData <DelFriendRsp>()));
            }
            return(false);
        }
Exemple #11
0
        public override bool OnPacket(NetPacketV1 pkt)
        {
            switch (pkt.getCmdId())
            {
            case 0x80:
                return(this.OnGetFinishGuideDataRsp(pkt.getData <GetFinishGuideDataRsp>()));

            case 130:
                return(this.OnFinishGuideReportRsp(pkt.getData <FinishGuideReportRsp>()));
            }
            return(false);
        }
Exemple #12
0
        public override bool OnPacket(NetPacketV1 pkt)
        {
            switch (pkt.getCmdId())
            {
            case 0x3f:
                return(this.OnGetGachaDisplayRsp(pkt.getData <GetGachaDisplayRsp>()));

            case 0x3b:
                return(this.OnGachaRsp(pkt.getData <GachaRsp>()));
            }
            return(false);
        }
Exemple #13
0
        public override bool OnPacket(NetPacketV1 pkt)
        {
            switch (pkt.getCmdId())
            {
            case 0xca:
                return(this.OnGetShopListRsp(pkt.getData <GetShopListRsp>()));

            case 0xcc:
                return(this.OnBuyGoodsRsp(pkt.getData <BuyGoodsRsp>()));
            }
            return(false);
        }
Exemple #14
0
        public override bool OnPacket(NetPacketV1 pkt)
        {
            switch (pkt.getCmdId())
            {
            case 0x90:
                return(this.OnStageEndRsp(pkt.getData <EndlessStageEndRsp>()));

            case 0x8e:
                return(this.OnStageBeginRsp(pkt.getData <EndlessStageBeginRsp>()));
            }
            return(false);
        }
Exemple #15
0
        public override bool OnPacket(NetPacketV1 pkt)
        {
            switch (pkt.getCmdId())
            {
            case 0x7a:
                return(this.OnGetSignInRewardStatusRsp(pkt.getData <GetSignInRewardStatusRsp>()));

            case 0x7c:
                return(this.OnGetSignInRewardRsp(pkt.getData <GetSignInRewardRsp>()));
            }
            return(false);
        }
        public override bool OnPacket(NetPacketV1 pkt)
        {
            switch (pkt.getCmdId())
            {
            case 0x19:
                return(this.SetupView());

            case 30:
                return(this.OnAvatarStarUpRsp(pkt.getData <AvatarStarUpRsp>()));
            }
            return(false);
        }
        public override bool OnPacket(NetPacketV1 pkt)
        {
            switch (pkt.getCmdId())
            {
            case 0x1b:
                return(this.OnGetEquipmentDataRsp(pkt.getData <GetEquipmentDataRsp>()));

            case 0x24:
                return(this.OnAddAvatarExpByMaterialRsp(pkt.getData <AddAvatarExpByMaterialRsp>()));
            }
            return(false);
        }
        public override bool OnPacket(NetPacketV1 pkt)
        {
            switch (pkt.getCmdId())
            {
            case 0x20:
                return(this.OnEquipmentPowerUpRsp(pkt.getData <EquipmentPowerUpRsp>()));

            case 0x4b:
                this.SetupItemProtectedStatus();
                break;
            }
            return(false);
        }
Exemple #19
0
        public override bool OnPacket(NetPacketV1 packet)
        {
            switch (packet.getCmdId())
            {
            case 0x19:
                return(this.OnGetAvatarDataRsp(packet.getData <GetAvatarDataRsp>()));

            case 0x6f:
                return(this.OnGetConfigDataRsp(packet.getData <GetConfigRsp>()));

            case 0x9b:
                return(this.OnAddGoodfeelRsp(packet.getData <AddGoodfeelRsp>()));
            }
            return(false);
        }
Exemple #20
0
        public override bool OnPacket(NetPacketV1 pkt)
        {
            switch (pkt.getCmdId())
            {
            case 0x63:
                return(this.OnGetProductsListRsp(pkt.getData <GetProductListRsp>()));

            case 0x53:
                return(this.OnRechargeSuccNotify(pkt.getData <RechargeFinishNotify>()));

            case 0xd0:
                return(this.OnCreateWeiXinOrderRsp(pkt.getData <CreateWeiXinOrderRsp>()));
            }
            return(false);
        }
        public override bool OnPacket(NetPacketV1 pkt)
        {
            switch (pkt.getCmdId())
            {
            case 0x4b:
                this.SetupItemProtectedStatus();
                break;

            case 0xc0:
                return(this.OnIdentifyStigmataAffixRsp(pkt.getData <IdentifyStigmataAffixRsp>()));

            case 40:
            case 0x88:
                return(this.SetupView());
            }
            return(false);
        }
Exemple #22
0
        public override bool OnPacket(NetPacketV1 pkt)
        {
            switch (pkt.getCmdId())
            {
            case 0x41:
            case 80:
                this.SetupFriendListTab();
                break;

            case 0x4d:
                this.OnGetRecommandListRsp(pkt.getData <GetRecommendFriendListRsp>());
                this.PlayCurrentTabAnim();
                break;

            case 0x47:
                this.SetupRequestListTab();
                this.PlayCurrentTabAnim();
                break;

            case 0x49:
                this.OnPlayerDetailRsp(pkt.getData <GetPlayerDetailDataRsp>());
                break;

            case 0x43:
                this.OnAddFriendRsp(pkt.getData <AddFriendRsp>());
                break;

            case 0x45:
                this.OnDelFriendRsp(pkt.getData <DelFriendRsp>());
                break;

            case 0xe2:
                this.OnGetInviteeFriendRsp(pkt.getData <GetInviteeFriendRsp>());
                break;

            case 0xe0:
                this.OnGetInviteFriendRsp(pkt.getData <GetInviteFriendRsp>());
                break;

            case 0xe4:
                this.OnGetAcceptFriendInviteRsp(pkt.getData <AcceptFriendInviteRsp>());
                break;
            }
            return(false);
        }
Exemple #23
0
        public override bool OnPacket(NetPacketV1 pkt)
        {
            switch (pkt.getCmdId())
            {
            case 5:
                return(this.OnGetPlayerTokenRsp(pkt.getData <GetPlayerTokenRsp>()));

            case 7:
                return(this.OnPlayerLoginRsp(pkt.getData <PlayerLoginRsp>()));

            case 11:
                return(this.OnGetMainDataRsp(pkt.getData <GetMainDataRsp>()));

            case 0x6f:
                return(this.OnGetConfigDataRsp(pkt.getData <GetConfigRsp>()));

            case 13:
                return(this.OnGetScoinExchangeInfoRsp(pkt.getData <GetScoinExchangeInfoRsp>()));

            case 0x11:
                return(this.OnGetStaminaExchangeInfoRsp(pkt.getData <GetStaminaExchangeInfoRsp>()));

            case 0x30:
                return(this.OnGetAvatarTeamDataRsp(pkt.getData <GetAvatarTeamDataRsp>()));

            case 0x35:
                return(this.OnGetSkillPointExchangeInfoRsp(pkt.getData <GetSkillPointExchangeInfoRsp>()));

            case 0x51:
                return(this.OnGetOfflineFriendsPointNotify(pkt.getData <GetOfflineFriendsPointNotify>()));

            case 120:
                return(this.OnBindAccountRsp(pkt.getData <BindAccountRsp>()));

            case 0x7a:
                return(this.OnGetSignInRewardStatusRsp(pkt.getData <GetSignInRewardStatusRsp>()));

            case 0x92:
                return(this.OnGetLastEndlessRewardDataRsp(pkt.getData <GetLastEndlessRewardDataRsp>()));

            case 0xda:
                return(this.OnAntiCheatSDKReportRsp(pkt.getData <AntiCheatSDKReportRsp>()));
            }
            return(false);
        }
Exemple #24
0
        public override bool OnPacket(NetPacketV1 pkt)
        {
            switch (pkt.getCmdId())
            {
            case 140:
            case 220:
                return(this.SetupView());

            case 0x97:
                return(this.OnEndlessPlayerDataUpdateNotify(pkt.getData <EndlessPlayerDataUpdateNotify>()));

            case 0x92:
                return(this.OnGetLastEndlessRewardDataRsp(pkt.getData <GetLastEndlessRewardDataRsp>()));

            case 0x99:
                return(this.OnEndlessWarInfoNotify(pkt.getData <EndlessWarInfoNotify>()));
            }
            return(false);
        }
Exemple #25
0
        public override bool OnPacket(NetPacketV1 pkt)
        {
            switch (pkt.getCmdId())
            {
            case 0xc6:
                this.SetupWelfareHint();
                return(this.OnGetVipRewardDataRsp(pkt.getData <GetVipRewardDataRsp>()));

            case 200:
                this.SetupWelfareHint();
                return(this.OnGetVipRewardRsp(pkt.getData <GetVipRewardRsp>()));

            case 0xce:
                return(this.OnManualRefreshShopRsp(pkt.getData <ManualRefreshShopRsp>()));

            case 0x53:
                return(this.OnRechargeSuccNotify(pkt.getData <RechargeFinishNotify>()));
            }
            return(false);
        }
Exemple #26
0
        public override bool OnPacket(NetPacketV1 pkt)
        {
            switch (pkt.getCmdId())
            {
            case 0xca:
                return(this.OnGetShopListRsp(pkt.getData <GetShopListRsp>()));

            case 0xcc:
                return(this.OnBuyGoodsRsp(pkt.getData <BuyGoodsRsp>()));

            case 0xce:
                return(this.OnManualRefreshShopRsp(pkt.getData <ManualRefreshShopRsp>()));

            case 11:
                return(this.OnGetMainDataRsp(pkt.getData <GetMainDataRsp>()));

            case 0xd8:
                return(this.OnBuyGachaTicket(pkt.getData <BuyGachaTicketRsp>()));
            }
            return(false);
        }
Exemple #27
0
        public override bool OnPacket(NetPacketV1 pkt)
        {
            ushort num = pkt.getCmdId();

            if (num == 0x9d)
            {
                return(this.DoSetupView());
            }
            if (((num == 0xa9) && (this._cabinData.cabinType == 5)) && this._waitingForVentureList)
            {
                this._waitingForVentureList = false;
                if (this._cameraFocusEnd)
                {
                    return(this.DoEnterCabin());
                }
            }
            if (num == 0xa3)
            {
                this.OnFinishCabinLevelUpRsp(pkt.getData <FinishCabinLevelUpRsp>());
            }
            return(false);
        }
Exemple #28
0
        public override bool OnPacket(NetPacketV1 pkt)
        {
            switch (pkt.getCmdId())
            {
            case 0x59:
                return(this.OnEnterWorldChatroomRsp(pkt.getData <EnterWorldChatroomRsp>()));

            case 0x5b:
                return(this.OnRecvWorldChatMsgNotify(pkt.getData <RecvWorldChatMsgNotify>()));

            case 0x5d:
                return(this.OnRecvFriendChatMsgNotify(pkt.getData <RecvFriendChatMsgNotify>()));

            case 0x41:
                return(this.OnAddFriendRsp(pkt.getData <GetFriendListRsp>()));

            case 80:
                return(this.OnDelFriendNotify(pkt.getData <DelFriendNotify>()));

            case 0x15:
                return(this.OnNicknameModifyRsp(pkt.getData <NicknameModifyRsp>()));
            }
            return(false);
        }
Exemple #29
0
        public override bool OnPacket(NetPacketV1 pkt)
        {
            switch (pkt.getCmdId())
            {
            case 7:
                return(this.OnPlayerLoginRsp(pkt.getData <PlayerLoginRsp>()));

            case 0x59:
                return(this.OnEnterWorldChatroomRsp(pkt.getData <EnterWorldChatroomRsp>()));

            case 0x5b:
                return(this.OnRecvWorldChatMsgNotify(pkt.getData <RecvWorldChatMsgNotify>()));

            case 0x5d:
                return(this.OnRecvFriendChatMsgNotify(pkt.getData <RecvFriendChatMsgNotify>()));

            case 0x5e:
                return(this.OnRecvFriendOfflineChatMsgNotify(pkt.getData <RecvFriendOfflineChatMsgNotify>()));

            case 0x61:
                return(this.OnRecvSystemChatMsgNotify(pkt.getData <RecvSystemChatMsgNotify>()));
            }
            return(false);
        }
 public override bool OnPacket(NetPacketV1 pkt)
 {
     return((pkt.getCmdId() == 120) && this.OnBindAccountRsp(pkt.getData <BindAccountRsp>()));
 }