// Limited support! // You can only reference methods or fields defined in the class (not in ancestors classes) // Fields and methods stubs are needed for compilation purposes only. // Reflexil will automaticaly map current type, fields or methods to original references. // Happy_BuYu.Lobby.BY_LbMainCommand private void HandleReceiveGiftRes(byte[] pMsg) { Debug.Log("HandleReceiveGiftRes"); GameUtil gutil = new GameUtil(); if (gutil.EnterGame) { BY_LbMainMediator.Instance.m_pLbChooseScenePanel.ClickStartBtn(); } ReceiveGiftResDef receiveGiftResDef = XConvert.ToObject <ReceiveGiftResDef>(pMsg); if (receiveGiftResDef.iResult == 0) { int num = 0; int objectSize = XConvert.GetObjectSize <ReceiveGiftResDef>(); int objectSize2 = XConvert.GetObjectSize <PresentInfo>(); int num2 = objectSize; num = num2; BY_LbPlayerNode bY_LbPlayerNode = GDUtil.myPlay as BY_LbPlayerNode; bY_LbPlayerNode.m_listPresentInfo.Clear(); Debug.Log("msg.iGiftNum" + receiveGiftResDef.iGiftNum); int num3 = PlayerPrefs.GetInt("RECEIVE_GIFT_RECORD_ID" + Happy_BuYu.GlobalVO.BY_GlobalData.m_iUserId); for (int i = 0; i < receiveGiftResDef.iGiftNum; i++) { num = num2; PresentInfo presentInfo = XConvert.ToObject <PresentInfo>(pMsg, ref num); bY_LbPlayerNode.m_listPresentInfo.Add(presentInfo); num2 += objectSize2; int iRecordID = presentInfo.iRecordID; if (iRecordID > num3) { num3 = iRecordID; } } PlayerPrefs.SetInt("RECEIVE_GIFT_RECORD_ID" + Happy_BuYu.GlobalVO.BY_GlobalData.m_iUserId, num3); PlayerPrefs.Save(); if (!Happy_BuYu.GlobalVO.BY_GlobalData.g_bReturnFromGame) { BY_LBGlobalParam.m_iUserInfoStep++; if (BY_LBGlobalParam.m_iUserInfoStep == BY_LBGlobalParam.USER_INFO_STEPS) { BY_LbMainMediator.Instance.CallAuthenRes(); } } this.ShowPresent(); } }
// Limited support! // You can only reference methods or fields defined in the class (not in ancestors classes) // Fields and methods stubs are needed for compilation purposes only. // Reflexil will automaticaly map current type, fields or methods to original references. // Happy_BuYu.Lobby.BY_LbMainCommand private void HandleReceiveGiftRes(byte[] pMsg, ref int offset) { CheckHaveNext checkHaveNext = XConvert.ToObject <CheckHaveNext>(pMsg, ref offset); BY_LbPlayerNode bY_LbPlayerNode = GDUtil.myPlay as BY_LbPlayerNode; bY_LbPlayerNode.m_listPresentInfo.Clear(); Debug.Log("msg.iGiftNum" + checkHaveNext.size); int num = PlayerPrefs.GetInt("RECEIVE_GIFT_RECORD_ID" + Happy_BuYu.GlobalVO.BY_GlobalData.m_iUserId); for (int i = 0; i < checkHaveNext.size; i++) { PresentInfo presentInfo = XConvert.ToObject <PresentInfo>(pMsg, ref offset); bY_LbPlayerNode.m_listPresentInfo.Add(presentInfo); int iRecordID = presentInfo.iRecordID; if (iRecordID > num) { num = iRecordID; } } PlayerPrefs.SetInt("RECEIVE_GIFT_RECORD_ID" + Happy_BuYu.GlobalVO.BY_GlobalData.m_iUserId, num); PlayerPrefs.Save(); this.ShowPresent(); var list = Happy_BuYu.GlobalVO.BY_AquariumExchangeProfiles.m_listAquariumExchangeInfos; foreach (var item in list) { BBBDebug.DebugAttri(item); } var list2 = BY_FishPetProfiles.m_listFishPetAttri; foreach (var item in list2) { BBBDebug.DebugAttri(item); } }