public void processData() { if (this.connectionErrored) { bool flag = true; foreach (CallBackEntryClass class2 in this.resultList) { if (((class2.state == 1) && (class2.classType != typeof(FullTick_ReturnType))) && (class2.classType != typeof(GetArmyData_ReturnType))) { flag = false; break; } } if (flag) { GameEngine.Instance.sessionExpired(11); } else { GameEngine.Instance.sessionExpired(1); } this.connectionErrored = false; } this.inResultsProcessing = true; bool flag2 = false; foreach (CallBackEntryClass class3 in this.resultList) { if (class3.state == 1) { double timeTaken = DXTimer.GetCurrentMilliseconds() - class3.timer; if (timeTaken > 30000.0) { if (class3.classType == typeof(CreateNewUser_ReturnType)) { class3.state = 0; class3.data = null; if (this.createNewUser_UserCallBack != null) { CreateNewUser_ReturnType returnData = new CreateNewUser_ReturnType(); returnData.SetAsFailed(); returnData.m_errorCode = CommonTypes.ErrorCodes.ErrorCode.CONNECTION_TIMED_OUT; this.createNewUser_UserCallBack(returnData); } } else if (class3.classType == typeof(LoginUser_ReturnType)) { class3.state = 0; class3.data = null; if (this.loginUser_UserCallBack != null) { LoginUser_ReturnType type2 = new LoginUser_ReturnType(); type2.SetAsFailed(); type2.m_errorCode = CommonTypes.ErrorCodes.ErrorCode.CONNECTION_TIMED_OUT; this.loginUser_UserCallBack(type2); } } else if (class3.classType == typeof(LoginUserGuid_ReturnType)) { class3.state = 0; class3.data = null; if (this.loginUserGuid_UserCallBack != null) { LoginUserGuid_ReturnType type3 = new LoginUserGuid_ReturnType(); type3.SetAsFailed(); type3.m_errorCode = CommonTypes.ErrorCodes.ErrorCode.CONNECTION_TIMED_OUT; this.loginUserGuid_UserCallBack(type3); } } } if ((this.packetTimeOut(timeTaken, class3) && (class3.classType != typeof(RetrieveStats_ReturnType))) && !InterfaceMgr.Instance.isConnectionErrorWindow()) { this.RTTTimeOuts++; class3.state = 0; class3.data = null; this.addPacket(class3.classType, -1); this.consecutiveTimeOuts++; if (this.consecutiveTimeOuts >= 10) { if (this.sessionID != 0) { this.sessionID = 0; GameEngine.Instance.sessionExpired(2); flag2 = true; } break; } } } if (class3.state != 2) { continue; } class3.state = 0; this.consecutiveTimeOuts = 0; if (!class3.data.Success && (class3.data.m_errorCode == CommonTypes.ErrorCodes.ErrorCode.CONNECTION_SESSION_ENDED)) { if (this.sessionID != 0) { this.sessionID = 0; GameEngine.Instance.sessionExpired(0); flag2 = true; } class3.data = null; break; } if ((((class3.classType != typeof(CreateNewUser_ReturnType)) && (class3.classType != typeof(LoginUser_ReturnType))) && ((class3.classType != typeof(LogOut_ReturnType)) && (class3.classType != typeof(LoginUserGuid_ReturnType)))) && (!class3.data.Success && (class3.data.m_errorCode == CommonTypes.ErrorCodes.ErrorCode.CONNECTION_NO_SERVER))) { class3.data = null; break; } if (InterfaceMgr.Instance.isConnectionErrorWindow()) { InterfaceMgr.Instance.closeConnectionErrorWindow(); } if (!class3.data.Success && (class3.data.m_errorCode == CommonTypes.ErrorCodes.ErrorCode.COMMUNICATION_BAN)) { if ((class3.classType == typeof(SendMail_ReturnType)) || (class3.classType == typeof(SendSpecialMail_ReturnType))) { MyMessageBox.Show(SK.Text("ChatScreenManager_Ban_Message_mail", "Your mail posting privileges have been suspended for violations of the game rules or code of conduct.") + Environment.NewLine + URLs.IPSharingPage, SK.Text("GENERIC_Mail Banned", "Mail Posting Privileges Ban")); } else if ((class3.classType == typeof(NewForumThread_ReturnType)) || (class3.classType == typeof(PostToForumThread_ReturnType))) { MyMessageBox.Show(SK.Text("ChatScreenManager_Ban_Message_forum", "Your forum posting privileges have been suspended for violations of the game rules or code of conduct.") + Environment.NewLine + URLs.IPSharingPage, SK.Text("GENERIC_Forum Banned", "Forum Posting Privileges Ban")); } else { MyMessageBox.Show(SK.Text("ChatScreenManager_Ban_Message", "You have been banned from using this function, contact support if you wish to discuss this.") + Environment.NewLine + "http://support.strongholdkingdoms.com", SK.Text("GENERIC_Banned", "Banned")); } class3.data = null; continue; } if ((this.commonData_UserCallBack != null) && (class3.classType != typeof(WorldInfo_ReturnType))) { Common_ReturnData data = class3.data; if (data.Success) { this.commonData_UserCallBack(data); } } Common_ReturnData data2 = class3.data; if (!data2.Success) { if (data2.m_errorCode == CommonTypes.ErrorCodes.ErrorCode.ACTION_NOT_IMPLEMENTED) { MyMessageBox.Show("This Function is not Implement Yet.", "Error"); } else { class3.state = 0; switch (data2.m_errorCode) { case CommonTypes.ErrorCodes.ErrorCode.SHARED_TRADING: case CommonTypes.ErrorCodes.ErrorCode.SHARED_VASSALS: case CommonTypes.ErrorCodes.ErrorCode.SHARED_ATTACK_TARGET: case CommonTypes.ErrorCodes.ErrorCode.SHARED_REINFORCEMENTS: case CommonTypes.ErrorCodes.ErrorCode.SHARED_MONKS: case CommonTypes.ErrorCodes.ErrorCode.SHARED_VOTING: SharedIPErrorPopup.showSharedIPPopup(CommonTypes.ErrorCodes.getErrorString(data2.m_errorCode)); foreach (CallBackEntryClass class4 in this.resultList) { class4.timer = DXTimer.GetCurrentMilliseconds(); } break; } } } if (class3.classType == typeof(CreateNewUser_ReturnType)) { CreateNewUser_ReturnType type4 = (CreateNewUser_ReturnType) class3.data; if (this.createNewUser_UserCallBack != null) { this.createNewUser_UserCallBack(type4); } } else if (class3.classType == typeof(LoginUser_ReturnType)) { LoginUser_ReturnType type5 = (LoginUser_ReturnType) class3.data; if (this.loginUser_UserCallBack != null) { this.loginUser_UserCallBack(type5); } } else if (class3.classType == typeof(LoginUserGuid_ReturnType)) { LoginUserGuid_ReturnType type6 = (LoginUserGuid_ReturnType) class3.data; if (this.loginUserGuid_UserCallBack != null) { this.loginUserGuid_UserCallBack(type6); } } else if (class3.classType == typeof(ResendVerificationEmail_ReturnType)) { ResendVerificationEmail_ReturnType type7 = (ResendVerificationEmail_ReturnType) class3.data; if (this.resendVerificationEmail_UserCallBack != null) { this.resendVerificationEmail_UserCallBack(type7); } } else if (class3.classType == typeof(RetrieveVillageUserInfo_ReturnType)) { RetrieveVillageUserInfo_ReturnType type8 = (RetrieveVillageUserInfo_ReturnType) class3.data; if (this.retrieveVillageUserInfo_UserCallBack != null) { this.retrieveVillageUserInfo_UserCallBack(type8); } } else if (class3.classType == typeof(SpecialVillageInfo_ReturnType)) { SpecialVillageInfo_ReturnType type9 = (SpecialVillageInfo_ReturnType) class3.data; if (this.specialVillageInfo_UserCallBack != null) { this.specialVillageInfo_UserCallBack(type9); } } else if (class3.classType == typeof(GetAllVillageOwnerFactions_ReturnType)) { GetAllVillageOwnerFactions_ReturnType type10 = (GetAllVillageOwnerFactions_ReturnType) class3.data; if (this.getAllVillageOwnerFactions_UserCallBack != null) { this.getAllVillageOwnerFactions_UserCallBack(type10); } } else if (class3.classType == typeof(GetVillageNames_ReturnType)) { GetVillageNames_ReturnType type11 = (GetVillageNames_ReturnType) class3.data; if (this.getVillageNames_UserCallBack != null) { this.getVillageNames_UserCallBack(type11); } } else if (class3.classType == typeof(GetVillageFactionChanges_ReturnType)) { GetVillageFactionChanges_ReturnType type12 = (GetVillageFactionChanges_ReturnType) class3.data; if (this.getVillageFactionChanges_UserCallBack != null) { this.getVillageFactionChanges_UserCallBack(type12); } } else if (class3.classType == typeof(GetAreaFactionChanges_ReturnType)) { GetAreaFactionChanges_ReturnType type13 = (GetAreaFactionChanges_ReturnType) class3.data; if (this.getAreaFactionChanges_UserCallBack != null) { this.getAreaFactionChanges_UserCallBack(type13); } } else if (class3.classType == typeof(GetUserVillages_ReturnType)) { GetUserVillages_ReturnType type14 = (GetUserVillages_ReturnType) class3.data; if (this.getUserVillages_UserCallBack != null) { this.getUserVillages_UserCallBack(type14); } } else if (class3.classType == typeof(GetOtherUserVillageIDList_ReturnType)) { GetOtherUserVillageIDList_ReturnType type15 = (GetOtherUserVillageIDList_ReturnType) class3.data; if (this.getOtherUserVillageIDList_UserCallBack != null) { this.getOtherUserVillageIDList_UserCallBack(type15); } } else if (class3.classType == typeof(BuyVillage_ReturnType)) { BuyVillage_ReturnType type16 = (BuyVillage_ReturnType) class3.data; if (this.buyVillage_UserCallBack != null) { this.buyVillage_UserCallBack(type16); } } else if (class3.classType == typeof(ConvertVillage_ReturnType)) { ConvertVillage_ReturnType type17 = (ConvertVillage_ReturnType) class3.data; if (this.convertVillage_UserCallBack != null) { this.convertVillage_UserCallBack(type17); } } else if (class3.classType == typeof(FullTick_ReturnType)) { FullTick_ReturnType type18 = (FullTick_ReturnType) class3.data; if (this.fullTick_UserCallBack != null) { this.fullTick_UserCallBack(type18); } } else if (class3.classType == typeof(LeaderBoard_ReturnType)) { LeaderBoard_ReturnType type19 = (LeaderBoard_ReturnType) class3.data; if (this.leaderBoard_UserCallBack != null) { this.leaderBoard_UserCallBack(type19); } } else if (class3.classType == typeof(LeaderBoardSearch_ReturnType)) { LeaderBoardSearch_ReturnType type20 = (LeaderBoardSearch_ReturnType) class3.data; if (this.leaderBoardSearch_UserCallBack != null) { this.leaderBoardSearch_UserCallBack(type20); } } else if (class3.classType == typeof(LogOut_ReturnType)) { LogOut_ReturnType type21 = (LogOut_ReturnType) class3.data; if (this.logOut_UserCallBack != null) { this.logOut_UserCallBack(type21); } } else if (class3.classType == typeof(UserInfo_ReturnType)) { UserInfo_ReturnType type22 = (UserInfo_ReturnType) class3.data; if (this.userInfo_UserCallBack != null) { this.userInfo_UserCallBack(type22); } } else if (class3.classType == typeof(GetArmyData_ReturnType)) { GetArmyData_ReturnType type23 = (GetArmyData_ReturnType) class3.data; if (this.getArmyData_UserCallBack != null) { this.getArmyData_UserCallBack(type23); } } else if (class3.classType == typeof(ArmyAttack_ReturnType)) { ArmyAttack_ReturnType type24 = (ArmyAttack_ReturnType) class3.data; if (this.armyAttack_UserCallBack != null) { this.armyAttack_UserCallBack(type24); } } else if (class3.classType == typeof(RetrieveAttackResult_ReturnType)) { RetrieveAttackResult_ReturnType type25 = (RetrieveAttackResult_ReturnType) class3.data; if (this.retrieveAttackResult_UserCallBack != null) { this.retrieveAttackResult_UserCallBack(type25); } } else if (class3.classType == typeof(SetAdminMessage_ReturnType)) { SetAdminMessage_ReturnType type26 = (SetAdminMessage_ReturnType) class3.data; if (this.setAdminMessage_UserCallBack != null) { this.setAdminMessage_UserCallBack(type26); } } else if (class3.classType == typeof(CompleteVillageCastle_ReturnType)) { CompleteVillageCastle_ReturnType type27 = (CompleteVillageCastle_ReturnType) class3.data; if (this.completeVillageCastle_UserCallBack != null) { this.completeVillageCastle_UserCallBack(type27); } } else if (class3.classType == typeof(RetrieveStats_ReturnType)) { RetrieveStats_ReturnType type28 = (RetrieveStats_ReturnType) class3.data; if (this.retrieveStats_UserCallBack != null) { this.retrieveStats_UserCallBack(type28); } } else if (class3.classType == typeof(GetAdminStats_ReturnType)) { GetAdminStats_ReturnType type29 = (GetAdminStats_ReturnType) class3.data; if (this.getAdminStats_UserCallBack != null) { this.getAdminStats_UserCallBack(type29); } } else if (class3.classType == typeof(GetReportsList_ReturnType)) { GetReportsList_ReturnType type30 = (GetReportsList_ReturnType) class3.data; if (this.getReportsList_UserCallBack != null) { this.getReportsList_UserCallBack(type30); } } else if (class3.classType == typeof(GetReport_ReturnType)) { GetReport_ReturnType type31 = (GetReport_ReturnType) class3.data; if (this.getReport_UserCallBack != null) { this.getReport_UserCallBack(type31); } } else if (class3.classType == typeof(ForwardReport_ReturnType)) { ForwardReport_ReturnType type32 = (ForwardReport_ReturnType) class3.data; if (this.forwardReport_UserCallBack != null) { this.forwardReport_UserCallBack(type32); } } else if (class3.classType == typeof(ViewBattle_ReturnType)) { ViewBattle_ReturnType type33 = (ViewBattle_ReturnType) class3.data; if (this.viewBattle_UserCallBack != null) { this.viewBattle_UserCallBack(type33); } } else if (class3.classType == typeof(ViewCastle_ReturnType)) { ViewCastle_ReturnType type34 = (ViewCastle_ReturnType) class3.data; if (this.viewCastle_UserCallBack != null) { this.viewCastle_UserCallBack(type34); } } else if (class3.classType == typeof(DeleteReports_ReturnType)) { DeleteReports_ReturnType type35 = (DeleteReports_ReturnType) class3.data; if (this.deleteReports_UserCallBack != null) { this.deleteReports_UserCallBack(type35); } } else if (class3.classType == typeof(UpdateReportFilters_ReturnType)) { UpdateReportFilters_ReturnType type36 = (UpdateReportFilters_ReturnType) class3.data; if (this.updateReportFilters_UserCallBack != null) { this.updateReportFilters_UserCallBack(type36); } } else if (class3.classType == typeof(UpdateUserOptions_ReturnType)) { UpdateUserOptions_ReturnType type37 = (UpdateUserOptions_ReturnType) class3.data; if (this.updateUserOptions_UserCallBack != null) { this.updateUserOptions_UserCallBack(type37); } } else if (class3.classType == typeof(ManageReportFolders_ReturnType)) { ManageReportFolders_ReturnType type38 = (ManageReportFolders_ReturnType) class3.data; if (this.manageReportFolders_UserCallBack != null) { this.manageReportFolders_UserCallBack(type38); } } else if (class3.classType == typeof(GetHistoricalData_ReturnType)) { GetHistoricalData_ReturnType type39 = (GetHistoricalData_ReturnType) class3.data; if (this.getHistoricalData_UserCallBack != null) { this.getHistoricalData_UserCallBack(type39); } } else if (class3.classType == typeof(GetMailThreadList_ReturnType)) { GetMailThreadList_ReturnType type40 = (GetMailThreadList_ReturnType) class3.data; if (this.getMailThreadList_UserCallBack != null) { this.getMailThreadList_UserCallBack(type40); } } else if (class3.classType == typeof(GetMailThread_ReturnType)) { GetMailThread_ReturnType type41 = (GetMailThread_ReturnType) class3.data; if (this.getMailThread_UserCallBack != null) { this.getMailThread_UserCallBack(type41); } } else if (class3.classType == typeof(GetMailFolders_ReturnType)) { GetMailFolders_ReturnType type42 = (GetMailFolders_ReturnType) class3.data; if (this.getMailFolders_UserCallBack != null) { this.getMailFolders_UserCallBack(type42); } } else if (class3.classType == typeof(CreateMailFolder_ReturnType)) { CreateMailFolder_ReturnType type43 = (CreateMailFolder_ReturnType) class3.data; if (this.createMailFolder_UserCallBack != null) { this.createMailFolder_UserCallBack(type43); } } else if (class3.classType == typeof(MoveToMailFolder_ReturnType)) { MoveToMailFolder_ReturnType type44 = (MoveToMailFolder_ReturnType) class3.data; if (this.moveToMailFolder_UserCallBack != null) { this.moveToMailFolder_UserCallBack(type44); } } else if (class3.classType == typeof(RemoveMailFolder_ReturnType)) { RemoveMailFolder_ReturnType type45 = (RemoveMailFolder_ReturnType) class3.data; if (this.removeMailFolder_UserCallBack != null) { this.removeMailFolder_UserCallBack(type45); } } else if (class3.classType == typeof(ReportMail_ReturnType)) { ReportMail_ReturnType type46 = (ReportMail_ReturnType) class3.data; if (this.reportMail_UserCallBack != null) { this.reportMail_UserCallBack(type46); } } else if (class3.classType == typeof(FlagMailRead_ReturnType)) { FlagMailRead_ReturnType type47 = (FlagMailRead_ReturnType) class3.data; if (this.flagMailRead_UserCallBack != null) { this.flagMailRead_UserCallBack(type47); } } else if (class3.classType == typeof(SendMail_ReturnType)) { SendMail_ReturnType type48 = (SendMail_ReturnType) class3.data; if (this.sendMail_UserCallBack != null) { this.sendMail_UserCallBack(type48); } } else if (class3.classType == typeof(SendSpecialMail_ReturnType)) { SendSpecialMail_ReturnType type49 = (SendSpecialMail_ReturnType) class3.data; if (this.sendSpecialMail_UserCallBack != null) { this.sendSpecialMail_UserCallBack(type49); } } else if (class3.classType == typeof(DeleteMailThread_ReturnType)) { DeleteMailThread_ReturnType type50 = (DeleteMailThread_ReturnType) class3.data; if (this.deleteMailThread_UserCallBack != null) { this.deleteMailThread_UserCallBack(type50); } } else if (class3.classType == typeof(GetMailRecipientsHistory_ReturnType)) { GetMailRecipientsHistory_ReturnType type51 = (GetMailRecipientsHistory_ReturnType) class3.data; if (this.getMailRecipientsHistory_UserCallBack != null) { this.getMailRecipientsHistory_UserCallBack(type51); } } else if (class3.classType == typeof(GetMailUserSearch_ReturnType)) { GetMailUserSearch_ReturnType type52 = (GetMailUserSearch_ReturnType) class3.data; if (this.getMailUserSearch_UserCallBack != null) { this.getMailUserSearch_UserCallBack(type52); } } else if (class3.classType == typeof(AddUserToFavourites_ReturnType)) { AddUserToFavourites_ReturnType type53 = (AddUserToFavourites_ReturnType) class3.data; if (this.addUserToFavourites_UserCallBack != null) { this.addUserToFavourites_UserCallBack(type53); } } else if (class3.classType == typeof(GetResourceLevel_ReturnType)) { GetResourceLevel_ReturnType type54 = (GetResourceLevel_ReturnType) class3.data; if (this.getResourceLevel_UserCallBack != null) { this.getResourceLevel_UserCallBack(type54); } } else if (class3.classType == typeof(GetVillageBuildingsList_ReturnType)) { GetVillageBuildingsList_ReturnType type55 = (GetVillageBuildingsList_ReturnType) class3.data; if (this.getVillageBuildingsList_UserCallBack != null) { this.getVillageBuildingsList_UserCallBack(type55); } } else if (class3.classType == typeof(PlaceVillageBuilding_ReturnType)) { PlaceVillageBuilding_ReturnType type56 = (PlaceVillageBuilding_ReturnType) class3.data; if (this.placeVillageBuilding_UserCallBack != null) { this.placeVillageBuilding_UserCallBack(type56); } } else if (class3.classType == typeof(MoveVillageBuilding_ReturnType)) { MoveVillageBuilding_ReturnType type57 = (MoveVillageBuilding_ReturnType) class3.data; if (this.moveVillageBuilding_UserCallBack != null) { this.moveVillageBuilding_UserCallBack(type57); } } else if (class3.classType == typeof(DeleteVillageBuilding_ReturnType)) { DeleteVillageBuilding_ReturnType type58 = (DeleteVillageBuilding_ReturnType) class3.data; if (this.deleteVillageBuilding_UserCallBack != null) { this.deleteVillageBuilding_UserCallBack(type58); } } else if (class3.classType == typeof(CancelDeleteVillageBuilding_ReturnType)) { CancelDeleteVillageBuilding_ReturnType type59 = (CancelDeleteVillageBuilding_ReturnType) class3.data; if (this.cancelDeleteVillageBuilding_UserCallBack != null) { this.cancelDeleteVillageBuilding_UserCallBack(type59); } } else if (class3.classType == typeof(VillageBuildingCompleteDataRetrieval_ReturnType)) { VillageBuildingCompleteDataRetrieval_ReturnType type60 = (VillageBuildingCompleteDataRetrieval_ReturnType) class3.data; if (this.villageBuildingCompleteDataRetrieval_UserCallBack != null) { this.villageBuildingCompleteDataRetrieval_UserCallBack(type60); } } else if (class3.classType == typeof(VillageBuildingSetActive_ReturnType)) { VillageBuildingSetActive_ReturnType type61 = (VillageBuildingSetActive_ReturnType) class3.data; if (this.villageBuildingSetActive_UserCallBack != null) { this.villageBuildingSetActive_UserCallBack(type61); } } else if (class3.classType == typeof(VillageBuildingChangeRates_ReturnType)) { VillageBuildingChangeRates_ReturnType type62 = (VillageBuildingChangeRates_ReturnType) class3.data; if (this.villageBuildingChangeRates_UserCallBack != null) { this.villageBuildingChangeRates_UserCallBack(type62); } } else if (class3.classType == typeof(VillageRename_ReturnType)) { VillageRename_ReturnType type63 = (VillageRename_ReturnType) class3.data; if (this.villageRename_UserCallBack != null) { this.villageRename_UserCallBack(type63); } } else if (class3.classType == typeof(VillageProduceWeapons_ReturnType)) { VillageProduceWeapons_ReturnType type64 = (VillageProduceWeapons_ReturnType) class3.data; if (this.villageProduceWeapons_UserCallBack != null) { this.villageProduceWeapons_UserCallBack(type64); } } else if (class3.classType == typeof(VillageHoldBanquet_ReturnType)) { VillageHoldBanquet_ReturnType type65 = (VillageHoldBanquet_ReturnType) class3.data; if (this.villageHoldBanquet_UserCallBack != null) { this.villageHoldBanquet_UserCallBack(type65); } } else if (class3.classType == typeof(GetCastle_ReturnType)) { GetCastle_ReturnType type66 = (GetCastle_ReturnType) class3.data; if (this.getCastle_UserCallBack != null) { this.getCastle_UserCallBack(type66); } } else if (class3.classType == typeof(AddCastleElement_ReturnType)) { AddCastleElement_ReturnType type67 = (AddCastleElement_ReturnType) class3.data; if (this.addCastleElement_UserCallBack != null) { this.addCastleElement_UserCallBack(type67); } } else if (class3.classType == typeof(DeleteCastleElement_ReturnType)) { DeleteCastleElement_ReturnType type68 = (DeleteCastleElement_ReturnType) class3.data; if (this.deleteCastleElement_UserCallBack != null) { this.deleteCastleElement_UserCallBack(type68); } } else if (class3.classType == typeof(CheatAddTroops_ReturnType)) { CheatAddTroops_ReturnType type69 = (CheatAddTroops_ReturnType) class3.data; if (this.cheatAddTroops_UserCallBack != null) { this.cheatAddTroops_UserCallBack(type69); } } else if (class3.classType == typeof(AutoRepairCastle_ReturnType)) { AutoRepairCastle_ReturnType type70 = (AutoRepairCastle_ReturnType) class3.data; if (this.autoRepairCastle_UserCallBack != null) { this.autoRepairCastle_UserCallBack(type70); } } else if (class3.classType == typeof(MemorizeCastleTroops_ReturnType)) { MemorizeCastleTroops_ReturnType type71 = (MemorizeCastleTroops_ReturnType) class3.data; if (this.memorizeCastleTroops_UserCallBack != null) { this.memorizeCastleTroops_UserCallBack(type71); } } else if (class3.classType == typeof(RestoreCastleTroops_ReturnType)) { RestoreCastleTroops_ReturnType type72 = (RestoreCastleTroops_ReturnType) class3.data; if (this.restoreCastleTroops_UserCallBack != null) { this.restoreCastleTroops_UserCallBack(type72); } } else if (class3.classType == typeof(LaunchCastleAttack_ReturnType)) { LaunchCastleAttack_ReturnType type73 = (LaunchCastleAttack_ReturnType) class3.data; if (this.launchCastleAttack_UserCallBack != null) { this.launchCastleAttack_UserCallBack(type73); } } else if (class3.classType == typeof(ChangeCastleElementAggressiveDefender_ReturnType)) { ChangeCastleElementAggressiveDefender_ReturnType type74 = (ChangeCastleElementAggressiveDefender_ReturnType) class3.data; if (this.changeCastleElementAggressiveDefender_UserCallBack != null) { this.changeCastleElementAggressiveDefender_UserCallBack(type74); } } else if (class3.classType == typeof(SendMarketResources_ReturnType)) { SendMarketResources_ReturnType type75 = (SendMarketResources_ReturnType) class3.data; if (this.sendMarketResources_UserCallBack != null) { this.sendMarketResources_UserCallBack(type75); } } else if (class3.classType == typeof(GetUserTraders_ReturnType)) { GetUserTraders_ReturnType type76 = (GetUserTraders_ReturnType) class3.data; if (this.getUserTraders_UserCallBack != null) { this.getUserTraders_UserCallBack(type76); } } else if (class3.classType == typeof(GetActiveTraders_ReturnType)) { GetActiveTraders_ReturnType type77 = (GetActiveTraders_ReturnType) class3.data; if (this.getActiveTraders_UserCallBack != null) { this.getActiveTraders_UserCallBack(type77); } } else if (class3.classType == typeof(GetStockExchangeData_ReturnType)) { GetStockExchangeData_ReturnType type78 = (GetStockExchangeData_ReturnType) class3.data; if (this.getStockExchangeData_UserCallBack != null) { this.getStockExchangeData_UserCallBack(type78); } } else if (class3.classType == typeof(StockExchangeTrade_ReturnType)) { StockExchangeTrade_ReturnType type79 = (StockExchangeTrade_ReturnType) class3.data; if (this.stockExchangeTrade_UserCallBack != null) { this.stockExchangeTrade_UserCallBack(type79); } } else if (class3.classType == typeof(UpdateVillageFavourites_ReturnType)) { UpdateVillageFavourites_ReturnType type80 = (UpdateVillageFavourites_ReturnType) class3.data; if (this.updateVillageFavourites_UserCallBack != null) { this.updateVillageFavourites_UserCallBack(type80); } } else if (class3.classType == typeof(MakeTroop_ReturnType)) { MakeTroop_ReturnType type81 = (MakeTroop_ReturnType) class3.data; if (this.makeTroop_UserCallBack != null) { this.makeTroop_UserCallBack(type81); } } else if (class3.classType == typeof(DisbandTroops_ReturnType)) { DisbandTroops_ReturnType type82 = (DisbandTroops_ReturnType) class3.data; if (this.disbandTroops_UserCallBack != null) { this.disbandTroops_UserCallBack(type82); } } else if (class3.classType == typeof(DisbandPeople_ReturnType)) { DisbandPeople_ReturnType type83 = (DisbandPeople_ReturnType) class3.data; if (this.disbandPeople_UserCallBack != null) { this.disbandPeople_UserCallBack(type83); } } else if (class3.classType == typeof(GetVillageInfoForDonateCapitalGoods_ReturnType)) { GetVillageInfoForDonateCapitalGoods_ReturnType type84 = (GetVillageInfoForDonateCapitalGoods_ReturnType) class3.data; if (this.getVillageInfoForDonateCapitalGoods_UserCallBack != null) { this.getVillageInfoForDonateCapitalGoods_UserCallBack(type84); } } else if (class3.classType == typeof(DonateCapitalGoods_ReturnType)) { DonateCapitalGoods_ReturnType type85 = (DonateCapitalGoods_ReturnType) class3.data; if (this.donateCapitalGoods_UserCallBack != null) { this.donateCapitalGoods_UserCallBack(type85); } } else if (class3.classType == typeof(GetVillageStartLocations_ReturnType)) { GetVillageStartLocations_ReturnType type86 = (GetVillageStartLocations_ReturnType) class3.data; if (this.getVillageStartLocations_UserCallBack != null) { this.getVillageStartLocations_UserCallBack(type86); } } else if (class3.classType == typeof(SetStartingCounty_ReturnType)) { SetStartingCounty_ReturnType type87 = (SetStartingCounty_ReturnType) class3.data; if (this.setStartingCounty_UserCallBack != null) { this.setStartingCounty_UserCallBack(type87); } } else if (class3.classType == typeof(UpdateCurrentCards_ReturnType)) { UpdateCurrentCards_ReturnType type88 = (UpdateCurrentCards_ReturnType) class3.data; if (this.updateCurrentCards_UserCallBack != null) { this.updateCurrentCards_UserCallBack(type88); } } else if (class3.classType == typeof(CancelCard_ReturnType)) { CancelCard_ReturnType type89 = (CancelCard_ReturnType) class3.data; if (this.cancelCard_UserCallBack != null) { this.cancelCard_UserCallBack(type89); } } else if (class3.classType == typeof(TutorialCommand_ReturnType)) { TutorialCommand_ReturnType type90 = (TutorialCommand_ReturnType) class3.data; if (this.tutorialCommand_UserCallBack != null) { this.tutorialCommand_UserCallBack(type90); } } else if (class3.classType == typeof(FlagQuestObjectiveComplete_ReturnType)) { FlagQuestObjectiveComplete_ReturnType type91 = (FlagQuestObjectiveComplete_ReturnType) class3.data; if (this.flagQuestObjectiveComplete_UserCallBack != null) { this.flagQuestObjectiveComplete_UserCallBack(type91); } } else if (class3.classType == typeof(CheckQuestObjectiveComplete_ReturnType)) { CheckQuestObjectiveComplete_ReturnType type92 = (CheckQuestObjectiveComplete_ReturnType) class3.data; if (this.checkQuestObjectiveComplete_UserCallBack != null) { this.checkQuestObjectiveComplete_UserCallBack(type92); } } else if (class3.classType == typeof(UpdateDiplomacyStatus_ReturnType)) { UpdateDiplomacyStatus_ReturnType type93 = (UpdateDiplomacyStatus_ReturnType) class3.data; if (this.updateDiplomacyStatus_UserCallBack != null) { this.updateDiplomacyStatus_UserCallBack(type93); } } else if (class3.classType == typeof(SendCommands_ReturnType)) { SendCommands_ReturnType type94 = (SendCommands_ReturnType) class3.data; if (this.sendCommands_UserCallBack != null) { this.sendCommands_UserCallBack(type94); } } else if (class3.classType == typeof(GetQuestStatus_ReturnType)) { GetQuestStatus_ReturnType type95 = (GetQuestStatus_ReturnType) class3.data; if (this.getQuestStatus_UserCallBack != null) { this.getQuestStatus_UserCallBack(type95); } } else if (class3.classType == typeof(CompleteQuest_ReturnType)) { CompleteQuest_ReturnType type96 = (CompleteQuest_ReturnType) class3.data; if (this.completeQuest_UserCallBack != null) { this.completeQuest_UserCallBack(type96); } } else if (class3.classType == typeof(UpgradeRank_ReturnType)) { UpgradeRank_ReturnType type97 = (UpgradeRank_ReturnType) class3.data; if (this.upgradeRank_UserCallBack != null) { this.upgradeRank_UserCallBack(type97); } } else if (class3.classType == typeof(PreAttackSetup_ReturnType)) { PreAttackSetup_ReturnType type98 = (PreAttackSetup_ReturnType) class3.data; if (this.preAttackSetup_UserCallBack != null) { this.preAttackSetup_UserCallBack(type98); } } else if (class3.classType == typeof(GetBattleHonourRating_ReturnType)) { GetBattleHonourRating_ReturnType type99 = (GetBattleHonourRating_ReturnType) class3.data; if (this.getBattleHonourRating_UserCallBack != null) { this.getBattleHonourRating_UserCallBack(type99); } } else if (class3.classType == typeof(RetrieveArmyFromGarrison_ReturnType)) { RetrieveArmyFromGarrison_ReturnType type100 = (RetrieveArmyFromGarrison_ReturnType) class3.data; if (this.retrieveArmyFromGarrison_UserCallBack != null) { this.retrieveArmyFromGarrison_UserCallBack(type100); } } else if (class3.classType == typeof(GetVillageRankTaxTree_ReturnType)) { GetVillageRankTaxTree_ReturnType type101 = (GetVillageRankTaxTree_ReturnType) class3.data; if (this.getVillageRankTaxTree_UserCallBack != null) { this.getVillageRankTaxTree_UserCallBack(type101); } } else if (class3.classType == typeof(GetResearchData_ReturnType)) { GetResearchData_ReturnType type102 = (GetResearchData_ReturnType) class3.data; if (this.getResearchData_UserCallBack != null) { this.getResearchData_UserCallBack(type102); } } else if (class3.classType == typeof(DoResearch_ReturnType)) { DoResearch_ReturnType type103 = (DoResearch_ReturnType) class3.data; if (this.doResearch_UserCallBack != null) { this.doResearch_UserCallBack(type103); } } else if (class3.classType == typeof(BuyResearchPoint_ReturnType)) { BuyResearchPoint_ReturnType type104 = (BuyResearchPoint_ReturnType) class3.data; if (this.buyResearchPoint_UserCallBack != null) { this.buyResearchPoint_UserCallBack(type104); } } else if (class3.classType == typeof(SendReinforcements_ReturnType)) { SendReinforcements_ReturnType type105 = (SendReinforcements_ReturnType) class3.data; if (this.sendReinforcements_UserCallBack != null) { this.sendReinforcements_UserCallBack(type105); } } else if (class3.classType == typeof(ReturnReinforcements_ReturnType)) { ReturnReinforcements_ReturnType type106 = (ReturnReinforcements_ReturnType) class3.data; if (this.returnReinforcements_UserCallBack != null) { this.returnReinforcements_UserCallBack(type106); } } else if (class3.classType == typeof(CancelCastleAttack_ReturnType)) { CancelCastleAttack_ReturnType type107 = (CancelCastleAttack_ReturnType) class3.data; if (this.cancelCastleAttack_UserCallBack != null) { this.cancelCastleAttack_UserCallBack(type107); } } else if (class3.classType == typeof(VassalInfo_ReturnType)) { VassalInfo_ReturnType type108 = (VassalInfo_ReturnType) class3.data; if (this.vassalInfo_UserCallBack != null) { this.vassalInfo_UserCallBack(type108); } } else if (class3.classType == typeof(HandleVassalRequest_ReturnType)) { HandleVassalRequest_ReturnType type109 = (HandleVassalRequest_ReturnType) class3.data; if (this.handleVassalRequest_UserCallBack != null) { this.handleVassalRequest_UserCallBack(type109); } } else if (class3.classType == typeof(GetVassalArmyInfo_ReturnType)) { GetVassalArmyInfo_ReturnType type110 = (GetVassalArmyInfo_ReturnType) class3.data; if (this.getVassalArmyInfo_UserCallBack != null) { this.getVassalArmyInfo_UserCallBack(type110); } } else if (class3.classType == typeof(SendTroopsToVassal_ReturnType)) { SendTroopsToVassal_ReturnType type111 = (SendTroopsToVassal_ReturnType) class3.data; if (this.sendTroopsToVassal_UserCallBack != null) { this.sendTroopsToVassal_UserCallBack(type111); } } else if (class3.classType == typeof(RetrieveTroopsFromVassal_ReturnType)) { RetrieveTroopsFromVassal_ReturnType type112 = (RetrieveTroopsFromVassal_ReturnType) class3.data; if (this.retrieveTroopsFromVassal_UserCallBack != null) { this.retrieveTroopsFromVassal_UserCallBack(type112); } } else if (class3.classType == typeof(VassalSendResources_ReturnType)) { VassalSendResources_ReturnType type113 = (VassalSendResources_ReturnType) class3.data; if (this.vassalSendResources_UserCallBack != null) { this.vassalSendResources_UserCallBack(type113); } } else if (class3.classType == typeof(UpdateSelectedTitheType_ReturnType)) { UpdateSelectedTitheType_ReturnType type114 = (UpdateSelectedTitheType_ReturnType) class3.data; if (this.updateSelectedTitheType_UserCallBack != null) { this.updateSelectedTitheType_UserCallBack(type114); } } else if (class3.classType == typeof(BreakVassalage_ReturnType)) { BreakVassalage_ReturnType type115 = (BreakVassalage_ReturnType) class3.data; if (this.breakVassalage_UserCallBack != null) { this.breakVassalage_UserCallBack(type115); } } else if (class3.classType == typeof(SendVassalRequest_ReturnType)) { SendVassalRequest_ReturnType type116 = (SendVassalRequest_ReturnType) class3.data; if (this.sendVassalRequest_UserCallBack != null) { this.sendVassalRequest_UserCallBack(type116); } } else if (class3.classType == typeof(GetPreVassalInfo_ReturnType)) { GetPreVassalInfo_ReturnType type117 = (GetPreVassalInfo_ReturnType) class3.data; if (this.getPreVassalInfo_UserCallBack != null) { this.getPreVassalInfo_UserCallBack(type117); } } else if (class3.classType == typeof(BreakLiegeLord_ReturnType)) { BreakLiegeLord_ReturnType type118 = (BreakLiegeLord_ReturnType) class3.data; if (this.breakLiegeLord_UserCallBack != null) { this.breakLiegeLord_UserCallBack(type118); } } else if (class3.classType == typeof(UpdateVillageResourcesInfo_ReturnType)) { UpdateVillageResourcesInfo_ReturnType type119 = (UpdateVillageResourcesInfo_ReturnType) class3.data; if (this.updateVillageResourcesInfo_UserCallBack != null) { this.updateVillageResourcesInfo_UserCallBack(type119); } } else { if (class3.classType == typeof(SendScouts_ReturnType)) { SendScouts_ReturnType type120 = (SendScouts_ReturnType) class3.data; if (this.sendScouts_UserCallBack == null) { goto Label_3601; } try { this.sendScouts_UserCallBack(type120); goto Label_3601; } catch (Exception) { goto Label_3601; } } if (class3.classType == typeof(SetHighestArmySeen_ReturnType)) { SetHighestArmySeen_ReturnType type121 = (SetHighestArmySeen_ReturnType) class3.data; if (this.setHighestArmySeen_UserCallBack != null) { this.setHighestArmySeen_UserCallBack(type121); } } else if (class3.classType == typeof(GetForumList_ReturnType)) { GetForumList_ReturnType type122 = (GetForumList_ReturnType) class3.data; if (this.getForumList_UserCallBack != null) { this.getForumList_UserCallBack(type122); } } else if (class3.classType == typeof(GetForumThreadList_ReturnType)) { GetForumThreadList_ReturnType type123 = (GetForumThreadList_ReturnType) class3.data; if (this.getForumThreadList_UserCallBack != null) { this.getForumThreadList_UserCallBack(type123); } } else if (class3.classType == typeof(GetForumThread_ReturnType)) { GetForumThread_ReturnType type124 = (GetForumThread_ReturnType) class3.data; if (this.getForumThread_UserCallBack != null) { this.getForumThread_UserCallBack(type124); } } else if (class3.classType == typeof(NewForumThread_ReturnType)) { NewForumThread_ReturnType type125 = (NewForumThread_ReturnType) class3.data; if (this.newForumThread_UserCallBack != null) { this.newForumThread_UserCallBack(type125); } } else if (class3.classType == typeof(PostToForumThread_ReturnType)) { PostToForumThread_ReturnType type126 = (PostToForumThread_ReturnType) class3.data; if (this.postToForumThread_UserCallBack != null) { this.postToForumThread_UserCallBack(type126); } } else if (class3.classType == typeof(GiveForumAccess_ReturnType)) { GiveForumAccess_ReturnType type127 = (GiveForumAccess_ReturnType) class3.data; if (this.giveForumAccess_UserCallBack != null) { this.giveForumAccess_UserCallBack(type127); } } else if (class3.classType == typeof(CreateForum_ReturnType)) { CreateForum_ReturnType type128 = (CreateForum_ReturnType) class3.data; if (this.createForum_UserCallBack != null) { this.createForum_UserCallBack(type128); } } else if (class3.classType == typeof(DeleteForum_ReturnType)) { DeleteForum_ReturnType type129 = (DeleteForum_ReturnType) class3.data; if (this.deleteForum_UserCallBack != null) { this.deleteForum_UserCallBack(type129); } } else if (class3.classType == typeof(DeleteForumThread_ReturnType)) { DeleteForumThread_ReturnType type130 = (DeleteForumThread_ReturnType) class3.data; if (this.deleteForumThread_UserCallBack != null) { this.deleteForumThread_UserCallBack(type130); } } else if (class3.classType == typeof(DeleteForumPost_ReturnType)) { DeleteForumPost_ReturnType type131 = (DeleteForumPost_ReturnType) class3.data; if (this.deleteForumPost_UserCallBack != null) { this.deleteForumPost_UserCallBack(type131); } } else if (class3.classType == typeof(GetCurrentElectionInfo_ReturnType)) { GetCurrentElectionInfo_ReturnType type132 = (GetCurrentElectionInfo_ReturnType) class3.data; if (this.getCurrentElectionInfo_UserCallBack != null) { this.getCurrentElectionInfo_UserCallBack(type132); } } else if (class3.classType == typeof(StandInElection_ReturnType)) { StandInElection_ReturnType type133 = (StandInElection_ReturnType) class3.data; if (this.standInElection_UserCallBack != null) { this.standInElection_UserCallBack(type133); } } else if (class3.classType == typeof(VoteInElection_ReturnType)) { VoteInElection_ReturnType type134 = (VoteInElection_ReturnType) class3.data; if (this.voteInElection_UserCallBack != null) { this.voteInElection_UserCallBack(type134); } } else if (class3.classType == typeof(UploadAvatar_ReturnType)) { UploadAvatar_ReturnType type135 = (UploadAvatar_ReturnType) class3.data; if (this.uploadAvatar_UserCallBack != null) { this.uploadAvatar_UserCallBack(type135); } } else if (class3.classType == typeof(MakePeople_ReturnType)) { MakePeople_ReturnType type136 = (MakePeople_ReturnType) class3.data; if (this.makePeople_UserCallBack != null) { this.makePeople_UserCallBack(type136); } } else if (class3.classType == typeof(GetUserPeople_ReturnType)) { GetUserPeople_ReturnType type137 = (GetUserPeople_ReturnType) class3.data; if (this.getUserPeople_UserCallBack != null) { this.getUserPeople_UserCallBack(type137); } } else if (class3.classType == typeof(GetUserIDFromName_ReturnType)) { GetUserIDFromName_ReturnType type138 = (GetUserIDFromName_ReturnType) class3.data; if (this.getUserIDFromName_UserCallBack != null) { this.getUserIDFromName_UserCallBack(type138); } } else if (class3.classType == typeof(GetActivePeople_ReturnType)) { GetActivePeople_ReturnType type139 = (GetActivePeople_ReturnType) class3.data; if (this.getActivePeople_UserCallBack != null) { this.getActivePeople_UserCallBack(type139); } } else if (class3.classType == typeof(SendPeople_ReturnType)) { SendPeople_ReturnType type140 = (SendPeople_ReturnType) class3.data; if (this.sendPeople_UserCallBack != null) { this.sendPeople_UserCallBack(type140); } } else if (class3.classType == typeof(RetrievePeople_ReturnType)) { RetrievePeople_ReturnType type141 = (RetrievePeople_ReturnType) class3.data; if (this.retrievePeople_UserCallBack != null) { this.retrievePeople_UserCallBack(type141); } } else if (class3.classType == typeof(SpyCommand_ReturnType)) { SpyCommand_ReturnType type142 = (SpyCommand_ReturnType) class3.data; if (this.spyCommand_UserCallBack != null) { this.spyCommand_UserCallBack(type142); } } else if (class3.classType == typeof(SpyGetVillageResourceInfo_ReturnType)) { SpyGetVillageResourceInfo_ReturnType type143 = (SpyGetVillageResourceInfo_ReturnType) class3.data; if (this.spyGetVillageResourceInfo_UserCallBack != null) { this.spyGetVillageResourceInfo_UserCallBack(type143); } } else if (class3.classType == typeof(SpyGetArmyInfo_ReturnType)) { SpyGetArmyInfo_ReturnType type144 = (SpyGetArmyInfo_ReturnType) class3.data; if (this.spyGetArmyInfo_UserCallBack != null) { this.spyGetArmyInfo_UserCallBack(type144); } } else if (class3.classType == typeof(SpyGetResearchInfo_ReturnType)) { SpyGetResearchInfo_ReturnType type145 = (SpyGetResearchInfo_ReturnType) class3.data; if (this.spyGetResearchInfo_UserCallBack != null) { this.spyGetResearchInfo_UserCallBack(type145); } } else if (class3.classType == typeof(GetLoginHistory_ReturnType)) { GetLoginHistory_ReturnType type146 = (GetLoginHistory_ReturnType) class3.data; if (this.getLoginHistory_UserCallBack != null) { this.getLoginHistory_UserCallBack(type146); } } else if (class3.classType == typeof(CreateFaction_ReturnType)) { CreateFaction_ReturnType type147 = (CreateFaction_ReturnType) class3.data; if (this.createFaction_UserCallBack != null) { this.createFaction_UserCallBack(type147); } } else if (class3.classType == typeof(DisbandFaction_ReturnType)) { DisbandFaction_ReturnType type148 = (DisbandFaction_ReturnType) class3.data; if (this.disbandFaction_UserCallBack != null) { this.disbandFaction_UserCallBack(type148); } } else if (class3.classType == typeof(FactionSendInvite_ReturnType)) { FactionSendInvite_ReturnType type149 = (FactionSendInvite_ReturnType) class3.data; if (this.factionSendInvite_UserCallBack != null) { this.factionSendInvite_UserCallBack(type149); } } else if (class3.classType == typeof(FactionWithdrawInvite_ReturnType)) { FactionWithdrawInvite_ReturnType type150 = (FactionWithdrawInvite_ReturnType) class3.data; if (this.factionWithdrawInvite_UserCallBack != null) { this.factionWithdrawInvite_UserCallBack(type150); } } else if (class3.classType == typeof(FactionReplyToInvite_ReturnType)) { FactionReplyToInvite_ReturnType type151 = (FactionReplyToInvite_ReturnType) class3.data; if (this.factionReplyToInvite_UserCallBack != null) { this.factionReplyToInvite_UserCallBack(type151); } } else if (class3.classType == typeof(FactionChangeMemberStatus_ReturnType)) { FactionChangeMemberStatus_ReturnType type152 = (FactionChangeMemberStatus_ReturnType) class3.data; if (this.factionChangeMemberStatus_UserCallBack != null) { this.factionChangeMemberStatus_UserCallBack(type152); } } else if (class3.classType == typeof(FactionLeave_ReturnType)) { FactionLeave_ReturnType type153 = (FactionLeave_ReturnType) class3.data; if (this.factionLeave_UserCallBack != null) { this.factionLeave_UserCallBack(type153); } } else if (class3.classType == typeof(FactionApplication_ReturnType)) { FactionApplication_ReturnType type154 = (FactionApplication_ReturnType) class3.data; if (this.factionApplication_UserCallBack != null) { this.factionApplication_UserCallBack(type154); } } else if (class3.classType == typeof(FactionApplicationProcessing_ReturnType)) { FactionApplicationProcessing_ReturnType type155 = (FactionApplicationProcessing_ReturnType) class3.data; if (this.factionApplicationProcessing_UserCallBack != null) { this.factionApplicationProcessing_UserCallBack(type155); } } else if (class3.classType == typeof(GetFactionData_ReturnType)) { GetFactionData_ReturnType type156 = (GetFactionData_ReturnType) class3.data; if (this.getFactionData_UserCallBack != null) { this.getFactionData_UserCallBack(type156); } } else if (class3.classType == typeof(FactionLeadershipVote_ReturnType)) { FactionLeadershipVote_ReturnType type157 = (FactionLeadershipVote_ReturnType) class3.data; if (this.factionLeadershipVote_UserCallBack != null) { this.factionLeadershipVote_UserCallBack(type157); } } else if (class3.classType == typeof(CreateUserRelationship_ReturnType)) { CreateUserRelationship_ReturnType type158 = (CreateUserRelationship_ReturnType) class3.data; if (this.createUserRelationship_UserCallBack != null) { this.createUserRelationship_UserCallBack(type158); } } else if (class3.classType == typeof(CreateFactionRelationship_ReturnType)) { CreateFactionRelationship_ReturnType type159 = (CreateFactionRelationship_ReturnType) class3.data; if (this.createFactionRelationship_UserCallBack != null) { this.createFactionRelationship_UserCallBack(type159); } } else if (class3.classType == typeof(ChangeFactionMotto_ReturnType)) { ChangeFactionMotto_ReturnType type160 = (ChangeFactionMotto_ReturnType) class3.data; if (this.changeFactionMotto_UserCallBack != null) { this.changeFactionMotto_UserCallBack(type160); } } else if (class3.classType == typeof(CreateHouseRelationship_ReturnType)) { CreateHouseRelationship_ReturnType type161 = (CreateHouseRelationship_ReturnType) class3.data; if (this.createHouseRelationship_UserCallBack != null) { this.createHouseRelationship_UserCallBack(type161); } } else if (class3.classType == typeof(GetHouseGloryPoints_ReturnType)) { GetHouseGloryPoints_ReturnType type162 = (GetHouseGloryPoints_ReturnType) class3.data; if (this.getHouseGloryPoints_UserCallBack != null) { this.getHouseGloryPoints_UserCallBack(type162); } } else if (class3.classType == typeof(GetViewFactionData_ReturnType)) { GetViewFactionData_ReturnType type163 = (GetViewFactionData_ReturnType) class3.data; if (this.getViewFactionData_UserCallBack != null) { this.getViewFactionData_UserCallBack(type163); } } else if (class3.classType == typeof(GetViewHouseData_ReturnType)) { GetViewHouseData_ReturnType type164 = (GetViewHouseData_ReturnType) class3.data; if (this.getViewHouseData_UserCallBack != null) { this.getViewHouseData_UserCallBack(type164); } } else if (class3.classType == typeof(SelfJoinHouse_ReturnType)) { SelfJoinHouse_ReturnType type165 = (SelfJoinHouse_ReturnType) class3.data; if (this.selfJoinHouse_UserCallBack != null) { this.selfJoinHouse_UserCallBack(type165); } } else if (class3.classType == typeof(HouseVote_ReturnType)) { HouseVote_ReturnType type166 = (HouseVote_ReturnType) class3.data; if (this.houseVote_UserCallBack != null) { this.houseVote_UserCallBack(type166); } } else if (class3.classType == typeof(HouseVoteHouseLeader_ReturnType)) { HouseVoteHouseLeader_ReturnType type167 = (HouseVoteHouseLeader_ReturnType) class3.data; if (this.houseVoteHouseLeader_UserCallBack != null) { this.houseVoteHouseLeader_UserCallBack(type167); } } else if (class3.classType == typeof(TouchHouseVisitDate_ReturnType)) { TouchHouseVisitDate_ReturnType type168 = (TouchHouseVisitDate_ReturnType) class3.data; if (this.touchHouseVisitDate_UserCallBack != null) { this.touchHouseVisitDate_UserCallBack(type168); } } else if (class3.classType == typeof(LeaveHouse_ReturnType)) { LeaveHouse_ReturnType type169 = (LeaveHouse_ReturnType) class3.data; if (this.leaveHouse_UserCallBack != null) { this.leaveHouse_UserCallBack(type169); } } else if (class3.classType == typeof(GetParishMembersList_ReturnType)) { GetParishMembersList_ReturnType type170 = (GetParishMembersList_ReturnType) class3.data; if (this.getParishMembersList_UserCallBack != null) { this.getParishMembersList_UserCallBack(type170); } } else if (class3.classType == typeof(GetParishFrontPageInfo_ReturnType)) { GetParishFrontPageInfo_ReturnType type171 = (GetParishFrontPageInfo_ReturnType) class3.data; if (this.getParishFrontPageInfo_UserCallBack != null) { this.getParishFrontPageInfo_UserCallBack(type171); } } else if (class3.classType == typeof(ParishWallDetailInfo_ReturnType)) { ParishWallDetailInfo_ReturnType type172 = (ParishWallDetailInfo_ReturnType) class3.data; if (this.parishWallDetailInfo_UserCallBack != null) { this.parishWallDetailInfo_UserCallBack(type172); } } else if (class3.classType == typeof(GetCountyElectionInfo_ReturnType)) { GetCountyElectionInfo_ReturnType type173 = (GetCountyElectionInfo_ReturnType) class3.data; if (this.getCountyElectionInfo_UserCallBack != null) { this.getCountyElectionInfo_UserCallBack(type173); } } else if (class3.classType == typeof(GetCountyFrontPageInfo_ReturnType)) { GetCountyFrontPageInfo_ReturnType type174 = (GetCountyFrontPageInfo_ReturnType) class3.data; if (this.getCountyFrontPageInfo_UserCallBack != null) { this.getCountyFrontPageInfo_UserCallBack(type174); } } else if (class3.classType == typeof(StandDownAsParishDespot_ReturnType)) { StandDownAsParishDespot_ReturnType type175 = (StandDownAsParishDespot_ReturnType) class3.data; if (this.standDownAsParishDespot_UserCallBack != null) { this.standDownAsParishDespot_UserCallBack(type175); } } else if (class3.classType == typeof(MakeParishVote_ReturnType)) { MakeParishVote_ReturnType type176 = (MakeParishVote_ReturnType) class3.data; if (this.makeParishVote_UserCallBack != null) { this.makeParishVote_UserCallBack(type176); } } else if (class3.classType == typeof(MakeCountyVote_ReturnType)) { MakeCountyVote_ReturnType type177 = (MakeCountyVote_ReturnType) class3.data; if (this.makeCountyVote_UserCallBack != null) { this.makeCountyVote_UserCallBack(type177); } } else if (class3.classType == typeof(GetCountryElectionInfo_ReturnType)) { GetCountryElectionInfo_ReturnType type178 = (GetCountryElectionInfo_ReturnType) class3.data; if (this.getCountryElectionInfo_UserCallBack != null) { this.getCountryElectionInfo_UserCallBack(type178); } } else if (class3.classType == typeof(GetCountryFrontPageInfo_ReturnType)) { GetCountryFrontPageInfo_ReturnType type179 = (GetCountryFrontPageInfo_ReturnType) class3.data; if (this.getCountryFrontPageInfo_UserCallBack != null) { this.getCountryFrontPageInfo_UserCallBack(type179); } } else if (class3.classType == typeof(MakeCountryVote_ReturnType)) { MakeCountryVote_ReturnType type180 = (MakeCountryVote_ReturnType) class3.data; if (this.makeCountryVote_UserCallBack != null) { this.makeCountryVote_UserCallBack(type180); } } else if (class3.classType == typeof(GetProvinceElectionInfo_ReturnType)) { GetProvinceElectionInfo_ReturnType type181 = (GetProvinceElectionInfo_ReturnType) class3.data; if (this.getProvinceElectionInfo_UserCallBack != null) { this.getProvinceElectionInfo_UserCallBack(type181); } } else if (class3.classType == typeof(GetProvinceFrontPageInfo_ReturnType)) { GetProvinceFrontPageInfo_ReturnType type182 = (GetProvinceFrontPageInfo_ReturnType) class3.data; if (this.getProvinceFrontPageInfo_UserCallBack != null) { this.getProvinceFrontPageInfo_UserCallBack(type182); } } else if (class3.classType == typeof(MakeProvinceVote_ReturnType)) { MakeProvinceVote_ReturnType type183 = (MakeProvinceVote_ReturnType) class3.data; if (this.makeProvinceVote_UserCallBack != null) { this.makeProvinceVote_UserCallBack(type183); } } else if (class3.classType == typeof(SendTroopsToCapital_ReturnType)) { SendTroopsToCapital_ReturnType type184 = (SendTroopsToCapital_ReturnType) class3.data; if (this.sendTroopsToCapital_UserCallBack != null) { this.sendTroopsToCapital_UserCallBack(type184); } } else if (class3.classType == typeof(GetCapitalBarracksSpace_ReturnType)) { GetCapitalBarracksSpace_ReturnType type185 = (GetCapitalBarracksSpace_ReturnType) class3.data; if (this.getCapitalBarracksSpace_UserCallBack != null) { this.getCapitalBarracksSpace_UserCallBack(type185); } } else if (class3.classType == typeof(GetIngameMessage_ReturnType)) { GetIngameMessage_ReturnType type186 = (GetIngameMessage_ReturnType) class3.data; if (this.getIngameMessage_UserCallBack != null) { this.getIngameMessage_UserCallBack(type186); } } else if (class3.classType == typeof(CancelInterdiction_ReturnType)) { CancelInterdiction_ReturnType type187 = (CancelInterdiction_ReturnType) class3.data; if (this.cancelInterdiction_UserCallBack != null) { this.cancelInterdiction_UserCallBack(type187); } } else if (class3.classType == typeof(GetExcommunicationStatus_ReturnType)) { GetExcommunicationStatus_ReturnType type188 = (GetExcommunicationStatus_ReturnType) class3.data; if (this.getExcommunicationStatus_UserCallBack != null) { this.getExcommunicationStatus_UserCallBack(type188); } } else if (class3.classType == typeof(InitialiseFreeCards_ReturnType)) { InitialiseFreeCards_ReturnType type189 = (InitialiseFreeCards_ReturnType) class3.data; if (this.initialiseFreeCards_UserCallBack != null) { this.initialiseFreeCards_UserCallBack(type189); } } else if (class3.classType == typeof(TestAchievements_ReturnType)) { TestAchievements_ReturnType type190 = (TestAchievements_ReturnType) class3.data; if (this.testAchievements_UserCallBack != null) { this.testAchievements_UserCallBack(type190); } } else if (class3.classType == typeof(AchievementProgress_ReturnType)) { AchievementProgress_ReturnType type191 = (AchievementProgress_ReturnType) class3.data; if (this.achievementProgress_UserCallBack != null) { this.achievementProgress_UserCallBack(type191); } } else if (class3.classType == typeof(GetQuestData_ReturnType)) { GetQuestData_ReturnType type192 = (GetQuestData_ReturnType) class3.data; if (this.getQuestData_UserCallBack != null) { this.getQuestData_UserCallBack(type192); } } else if (class3.classType == typeof(StartNewQuest_ReturnType)) { StartNewQuest_ReturnType type193 = (StartNewQuest_ReturnType) class3.data; if (this.startNewQuest_UserCallBack != null) { this.startNewQuest_UserCallBack(type193); } } else if (class3.classType == typeof(CompleteAbandonNewQuest_ReturnType)) { CompleteAbandonNewQuest_ReturnType type194 = (CompleteAbandonNewQuest_ReturnType) class3.data; if (this.completeAbandonNewQuest_UserCallBack != null) { this.completeAbandonNewQuest_UserCallBack(type194); } } else if (class3.classType == typeof(SpinTheWheel_ReturnType)) { SpinTheWheel_ReturnType type195 = (SpinTheWheel_ReturnType) class3.data; if (this.spinTheWheel_UserCallBack != null) { this.spinTheWheel_UserCallBack(type195); } } else if (class3.classType == typeof(SetVacationMode_ReturnType)) { SetVacationMode_ReturnType type196 = (SetVacationMode_ReturnType) class3.data; if (this.setVacationMode_UserCallBack != null) { this.setVacationMode_UserCallBack(type196); } } else if (class3.classType == typeof(PremiumOverview_ReturnType)) { PremiumOverview_ReturnType type197 = (PremiumOverview_ReturnType) class3.data; if (this.premiumOverview_UserCallBack != null) { this.premiumOverview_UserCallBack(type197); } } else if (class3.classType == typeof(GetLastAttacker_ReturnType)) { GetLastAttacker_ReturnType type198 = (GetLastAttacker_ReturnType) class3.data; if (this.getLastAttacker_UserCallBack != null) { this.getLastAttacker_UserCallBack(type198); } } else if (class3.classType == typeof(GetInvasionInfo_ReturnType)) { GetInvasionInfo_ReturnType type199 = (GetInvasionInfo_ReturnType) class3.data; if (this.getInvasionInfo_UserCallBack != null) { this.getInvasionInfo_UserCallBack(type199); } } else if (class3.classType == typeof(PreValidateCardToBePlayed_ReturnType)) { PreValidateCardToBePlayed_ReturnType type200 = (PreValidateCardToBePlayed_ReturnType) class3.data; if (this.preValidateCardToBePlayed_UserCallBack != null) { this.preValidateCardToBePlayed_UserCallBack(type200); } } else if (class3.classType == typeof(WorldInfo_ReturnType)) { WorldInfo_ReturnType type201 = (WorldInfo_ReturnType) class3.data; if (this.worldInfo_UserCallBack != null) { this.worldInfo_UserCallBack(type201); } } else if (class3.classType == typeof(Chat_Login_ReturnType)) { Chat_Login_ReturnType type202 = (Chat_Login_ReturnType) class3.data; if (this.chat_Login_UserCallBack != null) { this.chat_Login_UserCallBack(type202); } } else if (class3.classType == typeof(Chat_Logout_ReturnType)) { Chat_Logout_ReturnType type203 = (Chat_Logout_ReturnType) class3.data; if (this.chat_Logout_UserCallBack != null) { this.chat_Logout_UserCallBack(type203); } } else if (class3.classType == typeof(Chat_SetReceivingState_ReturnType)) { Chat_SetReceivingState_ReturnType type204 = (Chat_SetReceivingState_ReturnType) class3.data; if (this.chat_SetReceivingState_UserCallBack != null) { this.chat_SetReceivingState_UserCallBack(type204); } } else if (class3.classType == typeof(Chat_SendText_ReturnType)) { Chat_SendText_ReturnType type205 = (Chat_SendText_ReturnType) class3.data; if (this.chat_SendText_UserCallBack != null) { this.chat_SendText_UserCallBack(type205); } } else if (class3.classType == typeof(Chat_ReceiveText_ReturnType)) { Chat_ReceiveText_ReturnType type206 = (Chat_ReceiveText_ReturnType) class3.data; if (this.chat_ReceiveText_UserCallBack != null) { this.chat_ReceiveText_UserCallBack(type206); } } else if (class3.classType == typeof(Chat_SendParishText_ReturnType)) { Chat_SendParishText_ReturnType type207 = (Chat_SendParishText_ReturnType) class3.data; if (this.chat_SendParishText_UserCallBack != null) { this.chat_SendParishText_UserCallBack(type207); } } else if (class3.classType == typeof(Chat_ReceiveParishText_ReturnType)) { Chat_ReceiveParishText_ReturnType type208 = (Chat_ReceiveParishText_ReturnType) class3.data; if (this.chat_ReceiveParishText_UserCallBack != null) { this.chat_ReceiveParishText_UserCallBack(type208); } } else if (class3.classType == typeof(Chat_BackFillParishText_ReturnType)) { Chat_BackFillParishText_ReturnType type209 = (Chat_BackFillParishText_ReturnType) class3.data; if (this.chat_BackFillParishText_UserCallBack != null) { this.chat_BackFillParishText_UserCallBack(type209); } } else if (class3.classType == typeof(Chat_MarkParishTextRead_ReturnType)) { Chat_MarkParishTextRead_ReturnType type210 = (Chat_MarkParishTextRead_ReturnType) class3.data; if (this.chat_MarkParishTextRead_UserCallBack != null) { this.chat_MarkParishTextRead_UserCallBack(type210); } } else if (class3.classType == typeof(Chat_Admin_Command_ReturnType)) { Chat_Admin_Command_ReturnType type211 = (Chat_Admin_Command_ReturnType) class3.data; if (this.chat_Admin_Command_UserCallBack != null) { this.chat_Admin_Command_UserCallBack(type211); } } } Label_3601: class3.data = null; } if (flag2) { this.resultList.Clear(); } this.inResultsProcessing = false; if (this.queuedResultList.Count > 0) { bool flag3 = false; bool flag4 = true; foreach (CallBackEntryClass class5 in this.queuedResultList) { int count = this.resultList.Count; if (flag4) { for (int i = 0; i < count; i++) { if (this.resultList[i].state == 0) { this.resultList[i] = class5; flag3 = true; break; } } } if (!flag3) { flag4 = false; this.resultList.Add(class5); } } this.queuedResultList.Clear(); } }
public void OurRemoteAsyncCallBack_LoginUser(IAsyncResult ar) { RemoteAsyncDelegate_LoginUser asyncDelegate = (RemoteAsyncDelegate_LoginUser) ((AsyncResult) ar).AsyncDelegate; try { this.storeRPCresult(ar, asyncDelegate.EndInvoke(ar)); } catch (Exception exception) { LoginUser_ReturnType returnData = new LoginUser_ReturnType(); this.manageRemoteExpection(ar, returnData, exception); } }